Merge pull request #72 from bcmi-labs/azure-service-connection-update

Switched to `typefox-service-account1`.
This commit is contained in:
Akos Kitta 2019-10-17 10:00:27 +02:00 committed by GitHub
commit 06ef598806
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 20 additions and 10 deletions

5
.vscode/launch.json vendored
View File

@ -7,8 +7,9 @@
{ {
"type": "node", "type": "node",
"request": "launch", "request": "launch",
"name": "Launch Node.js Program", "name": "Launch Electron Packager",
"program": "${file}" "program": "${workspaceRoot}/electron/packager/index.js",
"cwd": "${workspaceFolder}/electron/packager"
}, },
{ {
"type": "node", "type": "node",

View File

@ -69,7 +69,7 @@ jobs:
downloadPath: 'gh-release' downloadPath: 'gh-release'
- task: GithubRelease@0 - task: GithubRelease@0
inputs: inputs:
gitHubConnection: personal-access-token-service-connection gitHubConnection: typefox-service-account1
repositoryName: bcmi-labs/arduino-editor repositoryName: bcmi-labs/arduino-editor
assets: | assets: |
gh-release/Arduino-PoC - Applications/*.zip gh-release/Arduino-PoC - Applications/*.zip

View File

@ -33,10 +33,8 @@
//---------------------------+ //---------------------------+
// rm -rf ../working-copy // rm -rf ../working-copy
rm('-rf', path('..', workingCopy)); rm('-rf', path('..', workingCopy));
// rm -rf ../build/dist // Clean up the `./electron/build` folder.
rm('-rf', path('..', 'build', 'dist')); shell.exec(`git -C ${path('..', 'build')} clean -ffxdq`, { async: false });
// rm -rf ../build/package.json
rm('-rf', path('..', 'build', 'package.json'));
//----------------------------------------------------------------------------------------------+ //----------------------------------------------------------------------------------------------+
// Copy the following items into the `working-copy` folder. Make sure to reuse the `yarn.lock`. | // Copy the following items into the `working-copy` folder. Make sure to reuse the `yarn.lock`. |
@ -95,6 +93,17 @@ ${fs.readFileSync(path('..', 'build', 'package.json')).toString()}
----------------------- -----------------------
`); `);
// Make sure the original `yarn.lock` file is used from the electron application.
if (fs.existsSync(path('..', 'build', 'yarn.lock'))) {
echo(`${path('..', 'build', 'yarn.lock')} must not exist.`);
shell.exit(1);
}
cp('-rf', path(rootPath, 'yarn.lock'), path('..', 'build'));
if (!fs.existsSync(path('..', 'build', 'yarn.lock'))) {
echo(`${path('..', 'build', 'yarn.lock')} does not exist.`);
shell.exit(1);
}
//-------------------------------------------------------------------------------------------+ //-------------------------------------------------------------------------------------------+
// Install all private and public dependencies for the electron application and build Theia. | // Install all private and public dependencies for the electron application and build Theia. |
//-------------------------------------------------------------------------------------------+ //-------------------------------------------------------------------------------------------+