[go: nahoru, domu]

Skip to content

Commit

Permalink
place electron in .build/electron
Browse files Browse the repository at this point in the history
related to #22
  • Loading branch information
joaomoreno committed Nov 26, 2015
1 parent 2a74a92 commit e22834e
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
npm-debug.log
Thumbs.db
node_modules/
.build/
out/
out-build/
out-editor/
Expand Down
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"search.exclude": {
"**/node_modules/**": true,
"**/bower_components": true,
".build/**": true,
"out*/**": true,
"extensions/**/out/**": true
}
Expand Down
3 changes: 2 additions & 1 deletion build/gulpfile.vscode.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ var util = require('./lib/util');
var buildfile = require('../src/buildfile');
var common = require('./gulpfile.common');
var root = path.dirname(__dirname);
var build = path.join(root, '.build');
var commit = util.getVersion(root);

var baseModules = [
Expand Down Expand Up @@ -112,7 +113,7 @@ var config = {
gulp.task('electron', function () {
// Force windows to use ia32
var arch = (process.platform === 'win32' ? 'ia32' : process.arch);
return electron.dest(path.join(path.dirname(root), 'Electron-Build'), _.extend({}, config, { arch: arch }));
return electron.dest(path.join(build, 'electron'), _.extend({}, config, { arch: arch }));
});

function mixinProduct() {
Expand Down
2 changes: 1 addition & 1 deletion scripts/code.bat
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ set ELECTRON_ENABLE_STACK_DUMPING=1

pushd %~dp0\..
node .\node_modules\gulp\bin\gulp.js electron
..\Electron-Build\CodeOSS.exe . %*
.\.build\electron\CodeOSS.exe . %*
popd
4 changes: 2 additions & 2 deletions scripts/code.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export ELECTRON_ENABLE_STACK_DUMPING=1
cd $ROOT ; node node_modules/gulp/bin/gulp.js electron

if [[ "$OSTYPE" == "darwin"* ]]; then
cd $ROOT; ../Electron-Build/Electron.app/Contents/MacOS/Electron . $*
cd $ROOT; ./.build/electron/Electron.app/Contents/MacOS/Electron . $*
else
cd $ROOT; ../Electron-Build/electron . $*
cd $ROOT; ./.build/electron/electron . $*
fi
2 changes: 1 addition & 1 deletion test/run.bat
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
set ATOM_SHELL_INTERNAL_RUN_AS_NODE=1

pushd %~dp0\..
..\Electron-Build\Code.exe .\node_modules\mocha\bin\_mocha %*
.\.build\electron\Code.exe .\node_modules\mocha\bin\_mocha %*
popd
4 changes: 2 additions & 2 deletions test/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ fi
# Unit Tests
if [[ "$OSTYPE" == "darwin"* ]]; then
cd $ROOT ; ulimit -n 4096 ; ATOM_SHELL_INTERNAL_RUN_AS_NODE=1 \
../Electron-Build/Electron.app/Contents/MacOS/Electron \
./.build/electron/Electron.app/Contents/MacOS/Electron \
node_modules/mocha/bin/_mocha $*
else
cd $ROOT ; ATOM_SHELL_INTERNAL_RUN_AS_NODE=1 \
../Electron-Build/electron \
./.build/electron/electron \
node_modules/mocha/bin/_mocha $*
fi

Expand Down

0 comments on commit e22834e

Please sign in to comment.