forked from Chia-Network/chia-blockchain
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Installer Fixes - New UI (Chia-Network#9506)
* Update to node 16 * Install lerna globally. Lerna clean, and comment out audit:fix for now since it doesn't work with Lerna (see lerna/lerna#1663) * Global lerna in build mac as well * Test building the gui package, instead of from the root * Build installer from the gui package and copy daemon folder to the correct place * Pass executable name / options.name to linux installers * Move installers to the root of blockchain-gui * Fix winstaller * Latest NEXT * Update to latest UI * Copy signing cert for windows to proper location
- Loading branch information
1 parent
9217993
commit 313cf27
Showing
12 changed files
with
77 additions
and
34 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -141,10 +141,10 @@ jobs: | |
run: | | ||
sh install.sh | ||
- name: Setup Node 12.x | ||
- name: Setup Node 16.x | ||
uses: actions/[email protected] | ||
with: | ||
node-version: '12.x' | ||
node-version: '16.x' | ||
|
||
- name: Add jq | ||
run: | | ||
|
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 |
---|---|---|
|
@@ -117,10 +117,10 @@ jobs: | |
run: | | ||
sh install.sh | ||
- name: Setup Node 14.x | ||
- name: Setup Node 16.x | ||
uses: actions/[email protected] | ||
with: | ||
node-version: '14.x' | ||
node-version: '16.x' | ||
|
||
- name: Build MacOS DMG in Catalina | ||
env: | ||
|
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 |
---|---|---|
|
@@ -65,6 +65,11 @@ jobs: | |
with: | ||
python-version: "3.9" | ||
|
||
- name: Setup Node 16.x | ||
uses: actions/[email protected] | ||
with: | ||
node-version: '16.x' | ||
|
||
- name: Test for secrets access | ||
id: check_secrets | ||
shell: bash | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,7 @@ npm install electron-installer-dmg -g | |
npm install [email protected] -g | ||
npm install [email protected] -g | ||
npm install notarize-cli -g | ||
npm install lerna -g | ||
|
||
echo "Create dist/" | ||
sudo rm -rf dist | ||
|
@@ -36,20 +37,25 @@ if [ "$LAST_EXIT_CODE" -ne 0 ]; then | |
echo >&2 "pyinstaller failed!" | ||
exit $LAST_EXIT_CODE | ||
fi | ||
cp -r dist/daemon ../chia-blockchain-gui | ||
cp -r dist/daemon ../chia-blockchain-gui/packages/gui | ||
cd .. || exit | ||
cd chia-blockchain-gui || exit | ||
|
||
echo "npm build" | ||
lerna clean -y | ||
npm install | ||
npm audit fix | ||
# Audit fix does not currently work with Lerna. See https://github.com/lerna/lerna/issues/1663 | ||
# npm audit fix | ||
npm run build | ||
LAST_EXIT_CODE=$? | ||
if [ "$LAST_EXIT_CODE" -ne 0 ]; then | ||
echo >&2 "npm run build failed!" | ||
exit $LAST_EXIT_CODE | ||
fi | ||
|
||
# Change to the gui package | ||
cd packages/gui || exit | ||
|
||
# sets the version for chia-blockchain in package.json | ||
brew install jq | ||
cp package.json package.json.orig | ||
|
@@ -80,8 +86,8 @@ if [ "$LAST_EXIT_CODE" -ne 0 ]; then | |
exit $LAST_EXIT_CODE | ||
fi | ||
|
||
mv Chia-darwin-x64 ../build_scripts/dist/ | ||
cd ../build_scripts || exit | ||
mv Chia-darwin-x64 ../../../build_scripts/dist/ | ||
cd ../../../build_scripts || exit | ||
|
||
DMG_NAME="Chia-$CHIA_INSTALLER_VERSION.dmg" | ||
echo "Create $DMG_NAME" | ||
|
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 |
---|---|---|
|
@@ -22,6 +22,7 @@ npm install electron-installer-dmg -g | |
npm install [email protected] -g | ||
npm install [email protected] -g | ||
npm install notarize-cli -g | ||
npm install lerna -g | ||
|
||
echo "Create dist/" | ||
sudo rm -rf dist | ||
|
@@ -38,20 +39,25 @@ if [ "$LAST_EXIT_CODE" -ne 0 ]; then | |
echo >&2 "pyinstaller failed!" | ||
exit $LAST_EXIT_CODE | ||
fi | ||
cp -r dist/daemon ../chia-blockchain-gui | ||
cp -r dist/daemon ../chia-blockchain-gui/packages/gui | ||
cd .. || exit | ||
cd chia-blockchain-gui || exit | ||
|
||
echo "npm build" | ||
lerna clean -y | ||
npm install | ||
npm audit fix | ||
# Audit fix does not currently work with Lerna. See https://github.com/lerna/lerna/issues/1663 | ||
# npm audit fix | ||
npm run build | ||
LAST_EXIT_CODE=$? | ||
if [ "$LAST_EXIT_CODE" -ne 0 ]; then | ||
echo >&2 "npm run build failed!" | ||
exit $LAST_EXIT_CODE | ||
fi | ||
|
||
# Change to the gui package | ||
cd packages/gui || exit | ||
|
||
# sets the version for chia-blockchain in package.json | ||
brew install jq | ||
cp package.json package.json.orig | ||
|
@@ -82,8 +88,8 @@ if [ "$LAST_EXIT_CODE" -ne 0 ]; then | |
exit $LAST_EXIT_CODE | ||
fi | ||
|
||
mv Chia-darwin-arm64 ../build_scripts/dist/ | ||
cd ../build_scripts || exit | ||
mv Chia-darwin-arm64 ../../../build_scripts/dist/ | ||
cd ../../../build_scripts || exit | ||
|
||
DMG_NAME="Chia-$CHIA_INSTALLER_VERSION-arm64.dmg" | ||
echo "Create $DMG_NAME" | ||
|
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
Submodule chia-blockchain-gui
updated
3 files
+394 −76 | packages/gui/package-lock.json | |
+1 −0 | packages/gui/package.json | |
+1 −0 | packages/gui/winstaller.js |