mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-07-08 20:06:32 +00:00
Merge pull request #72 from bcmi-labs/azure-service-connection-update
Switched to `typefox-service-account1`.
This commit is contained in:
commit
06ef598806
5
.vscode/launch.json
vendored
5
.vscode/launch.json
vendored
@ -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",
|
||||||
|
@ -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
|
||||||
|
@ -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`. |
|
||||||
@ -79,7 +77,7 @@
|
|||||||
pkg = require('../working-copy/electron-app/package.json');
|
pkg = require('../working-copy/electron-app/package.json');
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
const template = require('../build/template-package.json');
|
const template = require('../build/template-package.json');
|
||||||
template.build.files = [ ...template.build.files, ...unusedDependencies.map(name => `!node_modules/${name}`) ];
|
template.build.files = [...template.build.files, ...unusedDependencies.map(name => `!node_modules/${name}`)];
|
||||||
pkg.dependencies = { ...pkg.dependencies, ...template.dependencies };
|
pkg.dependencies = { ...pkg.dependencies, ...template.dependencies };
|
||||||
pkg.devDependencies = { ...pkg.devDependencies, ...template.devDependencies };
|
pkg.devDependencies = { ...pkg.devDependencies, ...template.devDependencies };
|
||||||
fs.writeFileSync(path('..', 'build', 'package.json'), JSON.stringify({
|
fs.writeFileSync(path('..', 'build', 'package.json'), JSON.stringify({
|
||||||
@ -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. |
|
||||||
//-------------------------------------------------------------------------------------------+
|
//-------------------------------------------------------------------------------------------+
|
||||||
|
Loading…
x
Reference in New Issue
Block a user