From 4c6d5c90c6cdc92ad41fbc61a6114c4462714e09 Mon Sep 17 00:00:00 2001 From: Allan Zhou Date: Sat, 27 Feb 2016 00:27:08 -0800 Subject: [PATCH 1/5] Display filenames properly on windows --- dawn/js/components/Editor.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dawn/js/components/Editor.js b/dawn/js/components/Editor.js index ce7d306..27063db 100644 --- a/dawn/js/components/Editor.js +++ b/dawn/js/components/Editor.js @@ -170,7 +170,11 @@ export default React.createClass({ }, pathToName(filepath) { if (filepath !== null) { - return filepath.split('/').pop(); + if (process.platform === 'win32') { + return filepath.split('\\').pop(); + } else { + return filepath.split('/').pop(); + } } else { return '[ New File ]'; } From a159157dc17a1a7185f2084c036e208aa9c30d78 Mon Sep 17 00:00:00 2001 From: Allan Zhou Date: Sat, 27 Feb 2016 01:09:59 -0800 Subject: [PATCH 2/5] Automatically add '.py' extension if they don't do so themselves. --- dawn/js/actions/EditorActionCreators.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/dawn/js/actions/EditorActionCreators.js b/dawn/js/actions/EditorActionCreators.js index 786a239..da14a21 100644 --- a/dawn/js/actions/EditorActionCreators.js +++ b/dawn/js/actions/EditorActionCreators.js @@ -49,9 +49,17 @@ let EditorActionCreators = { }; if (filepath === null) { - dialog.showSaveDialog(function(filepath) { + dialog.showSaveDialog({ + filters: [{ name: 'python', extensions: ['py']}] + }, function(filepath) { if (filepath === undefined) return; - writeContents(filepath); + + // Automatically append .py extension if they don't have it + if (filepath.endsWith('.py')) { + writeContents(filepath); + } else { + writeContents(filepath + '.py'); + } }); } else { writeContents(filepath); From 69bc3c0e8b4eec61a0738e4724b3a53df72ccdda Mon Sep 17 00:00:00 2001 From: Allan Zhou Date: Sat, 27 Feb 2016 01:18:41 -0800 Subject: [PATCH 3/5] Set fontsize to 14 --- dawn/js/components/Editor.js | 1 + 1 file changed, 1 insertion(+) diff --git a/dawn/js/components/Editor.js b/dawn/js/components/Editor.js index 27063db..9fc3869 100644 --- a/dawn/js/components/Editor.js +++ b/dawn/js/components/Editor.js @@ -222,6 +222,7 @@ export default React.createClass({ mode="python" theme={ this.state.editorTheme } width="100%" + fontSize={14} ref="CodeEditor" name="CodeEditor" height={String( From 1bd5fa80ba58a88afcce86515de579d796e2ecc0 Mon Sep 17 00:00:00 2001 From: Allan Zhou Date: Sat, 27 Feb 2016 01:56:53 -0800 Subject: [PATCH 4/5] Add icons, and release script --- dawn/icons/pieicon.icns | Bin 0 -> 35880 bytes dawn/icons/pieicon.ico | Bin 0 -> 32038 bytes dawn/package.json | 1 + dawn/release.js | 42 ++++++++++++++++++++++++++++++++++++++++ 4 files changed, 43 insertions(+) create mode 100644 dawn/icons/pieicon.icns create mode 100644 dawn/icons/pieicon.ico create mode 100644 dawn/release.js diff --git a/dawn/icons/pieicon.icns b/dawn/icons/pieicon.icns new file mode 100644 index 0000000000000000000000000000000000000000..f4c11ba44c3a7546cd8f71adb4e3b0c45624946e GIT binary patch literal 35880 zcmeIb2Ygi3wm-hkIdjg`OnRI2UPwafOxn~WfY?w}1UpzjngsEzyFJxh`apqf=O|ONmXyi zjYJ7V+T_&eq#*j~_64#$x{dx<5FDLsT0PoP64j4j(ClfR;?bc|u>%OEFMD(%QBFUC z)}jkvd}h8ZM+_hsow@9x>({*$K7ioL%O`JoPjwVQwlQma_v0#$A4q z$wcQ($tbjjI7!FtdGq2|UfLQPYlw-7#vBI6jV?>hzT7q@L@v3)t*@%MaH8dwc{Ap@ zFIx3*cIjx+-hb~!p4n3-&bf1pfoc?`>DgoMyphe}Y|pHqu#yWW)GltgWX_yq`8waM z0;6^881ppG93e3-<&p)-rDmdJqN(1w*IigxoKF-)5>1_UwyVjtsI1JGdFj;>>0@SI zS37t9xT>Url4Mhr2ozH@Vu~ZEAR)fOA%G2Ed+n;{rcF6FyG$NM1e~L5#uVD)^_Jx1 zE1wK%qg%^o&jcaxVuZr;Bq+Fn7yQ7dzz2>}5~=cq0Y|2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goal$n+WgN!<$3i$-u$~w39e0>;U1NXH za96_vIuyfxy%Y0MFaA%Ca%P=)&GY%V?|qE&9diKfo$o-W{TMppd4w~#cdC0EksO+aqAIk`0iI4a5@pTVa<3J>yeAF9da!Yw(mG6V$Imi@k5^AJw9A( zf-YZTUO9oXoa-LAaUYGIfH?yps?0(j3;1F!#?NK&#V5EEe;@E(i}$4nf8SvW{6CNoCWin3 literal 0 HcmV?d00001 diff --git a/dawn/package.json b/dawn/package.json index 2cd4fb2..88bc121 100644 --- a/dawn/package.json +++ b/dawn/package.json @@ -28,6 +28,7 @@ "babel-preset-es2015": "^6.3.13", "babel-preset-react": "^6.3.13", "better-npm-run": "0.0.7", + "minimist": "^1.2.0", "webpack": "^1.12.13" }, "dependencies": { diff --git a/dawn/release.js b/dawn/release.js new file mode 100644 index 0000000..a46c23d --- /dev/null +++ b/dawn/release.js @@ -0,0 +1,42 @@ +var minimist = require('minimist'); +var packager = require('electron-packager'); +var exec = require('child_process').exec; + +function build() { + console.log('Packaging with webpack, using the production config'); + var child = exec('npm run-script build', function(err, stdout, stderr) { + console.log('stderr: ', stderr); + if (err !== null) { + console.log('error: ', err); + } + }); +} + +function pack(all, platform, arch, prune) { + var opts = {}; //packaging options + + if (all) { + console.log('Packaging for all platforms'); + opts.all = true; // build for all platforms and arch + } else { + console.log('Packaging for: ', platform, arch); + opts.platform = platform; + opts.arch = arch; + } + opts.dir = '.'; // source dir + opts.name = 'dawn'; + opts.prune = prune; //remove dev dependencies + opts.icon = './icons/icon'; +} + +function main() { + var argv = minimist(process.argv.slice(2)); + + if (argv.build) { + build(); + } + + pack(argv.all, argv.platform, argv.arch, argv.prune); +} + +main(); From 8ad2844c7d752660024d189112f1934ac5b76668 Mon Sep 17 00:00:00 2001 From: Allan Zhou Date: Sat, 27 Feb 2016 03:38:04 -0800 Subject: [PATCH 5/5] Bump version and change release script --- dawn/package.json | 2 +- dawn/release.js | 30 ++++++++++++++++++++++-------- 2 files changed, 23 insertions(+), 9 deletions(-) diff --git a/dawn/package.json b/dawn/package.json index 88bc121..782c425 100644 --- a/dawn/package.json +++ b/dawn/package.json @@ -1,6 +1,6 @@ { "name": "Dawn", - "version": "0.4.0-beta.3", + "version": "0.4.0", "description": "Frontend for PIE Robotics System", "main": "main.js", "scripts": { diff --git a/dawn/release.js b/dawn/release.js index a46c23d..4763641 100644 --- a/dawn/release.js +++ b/dawn/release.js @@ -1,10 +1,10 @@ var minimist = require('minimist'); var packager = require('electron-packager'); -var exec = require('child_process').exec; +var execSync = require('child_process').execSync; function build() { console.log('Packaging with webpack, using the production config'); - var child = exec('npm run-script build', function(err, stdout, stderr) { + var child = execSync('npm run-script build', function(err, stdout, stderr) { console.log('stderr: ', stderr); if (err !== null) { console.log('error: ', err); @@ -12,10 +12,10 @@ function build() { }); } -function pack(all, platform, arch, prune) { +function pack(prod, platform, arch) { var opts = {}; //packaging options - if (all) { + if (prod) { console.log('Packaging for all platforms'); opts.all = true; // build for all platforms and arch } else { @@ -23,20 +23,34 @@ function pack(all, platform, arch, prune) { opts.platform = platform; opts.arch = arch; } - opts.dir = '.'; // source dir + + opts.dir = __dirname; // source dir opts.name = 'dawn'; - opts.prune = prune; //remove dev dependencies + opts.prune = true; //remove dev dependencies opts.icon = './icons/icon'; + opts.version = '0.36.2'; + opts.out = '../..' + + packager(opts, function(err, appPath) { + if (err) { + console.log('Packaging error: ', err); + } else { + console.log(appPath); + } + }); } +// General release command: 'node release.js --prod'. +// If you already ran build: 'node release.js --prod --prebuilt' +// For a specific target: 'node release.js --platform=... --arch=...' function main() { var argv = minimist(process.argv.slice(2)); - if (argv.build) { + if (!argv.prebuilt) { build(); } - pack(argv.all, argv.platform, argv.arch, argv.prune); + pack(argv.prod, argv.platform, argv.arch); } main();