-
Notifications
You must be signed in to change notification settings - Fork 980
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Multi-Build/Package VS Code extensions on single computer. (#1473)
* added try catch on newly added code to buildjs that copies node_sqlite3 to a build directory that may not exist * fix typo extensioins -> extensions * added new npm command to build for all platforms * started adding code to download the ripgrep binaries, will have to finish at a later date * - added platforms global variable - added check for --all parameter - moved alpine check to utils - moved all packaging code to package() - added links to esbuild binaries - chaged code in IIFE to either package for all or package for target * moved alpine config to utils * added the code that will download the ripgrep binaries * added npm run script package-all which will run the package-all.js script * added package-all script which will package all major builds * - commented out old downloadEsbuildBinary and rewrote it - finished the downloadRipgrepBinary() and exported it * - added back some of the old code to make this script reusable - commented out the esbuild download and install in favor of downloading the prebuilt binary - download the ripgrep binary - containerized the all of the package code into package() and call it in the IIFE * added a check for the --target flag and append it to the vsce command * removed unused variable
- Loading branch information
Showing
7 changed files
with
184 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
const { execSync } = require("child_process"); | ||
|
||
const PLATFORMS = [ | ||
"win32-x64", | ||
// "win32-arm64", can't be built due to no sqlite3 binaries | ||
"linux-x64", | ||
"linux-arm64", | ||
"darwin-x64", | ||
"darwin-arm64", | ||
] | ||
const args = process.argv.slice(2); | ||
const isPreRelease = args.includes("--pre-release"); | ||
|
||
(async () => { | ||
for (const i in PLATFORMS) { | ||
const platform = PLATFORMS[i]; | ||
const pkgCommand = isPreRelease | ||
? "node scripts/package.js --pre-release --target " + platform // --yarn" | ||
: "node scripts/package.js --target " + platform; // --yarn"; | ||
|
||
execSync( | ||
"node scripts/prepackage-cross-platform.js --target "+ platform, | ||
{stdio: 'inherit'} | ||
|
||
); | ||
execSync( | ||
pkgCommand, | ||
{stdio: 'inherit'} | ||
); | ||
} | ||
})(); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters