-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
61 additions
and
42 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,32 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -ea | ||
|
||
if [[ "$VERBOSE" =~ 1|on|On|Yes|yes|true|True ]]; then | ||
set +x | ||
export DEBUG='electron-forge:*,electron-packager,electron-rebuild' | ||
fi | ||
|
||
case "$(uname -s)" in | ||
"Linux") | ||
npm run make -- --arch=x64 | ||
;; | ||
"Darwin") | ||
npm run make -- --arch=x64,arm64 | ||
;; | ||
"Windows"*|"MINGW"*|"MSYS"*) | ||
#"@powershell -Command $env:DEBUG='electron-forge:*,electron-packager,electron-rebuild,electron-windows-installer:main';npm run make" | ||
npm run make -- --arch=ia32,x64 | ||
;; | ||
esac | ||
|
||
# collect all artifacts from subdirectories under a common top-level directory | ||
mkdir -p dist | ||
find ./out/make -type f \( \ | ||
-iname "*.zip" -o \ | ||
-iname "*.dmg" -o \ | ||
-iname "*.rpm" -o \ | ||
-iname "*.deb" -o \ | ||
-iname "*.AppImage" -o \ | ||
-iname "*Setup.exe" \ | ||
\) -ls -exec cp '{}' dist/ \; |
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,23 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -ea | ||
|
||
if [[ "$VERBOSE" =~ 1|on|On|Yes|yes|true|True ]]; then | ||
set +x | ||
export DEBUG='electron-forge:*,electron-packager,electron-rebuild' | ||
fi | ||
|
||
npm run package | ||
npm run lint | ||
|
||
case "$(uname -s)" in | ||
"Linux") | ||
xvfb-run --auto-servernum npm run test-gui && xvfb-run --auto-servernum npm run test-shared | ||
;; | ||
"Darwin") | ||
npm run test-gui && npm run test-shared | ||
;; | ||
"Windows"*|"MINGW"*|"MSYS"*) | ||
npm run test-gui && npm run test-shared | ||
;; | ||
esac |
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