-
Notifications
You must be signed in to change notification settings - Fork 4
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
chenwenhao
committed
Jan 15, 2024
1 parent
bf9be84
commit 80e31eb
Showing
6 changed files
with
33 additions
and
65 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,34 +1,32 @@ | ||
#!/bin/bash | ||
|
||
echo "======start codecraft build=====" | ||
script_dir="/root/workspace/seeed-codecraft_2f88" | ||
export CSC_IDENTITY_AUTO_DISCOVERY=false | ||
export NODE_OPTIONS='--max_old_space_size=10240' | ||
project_dir=$(cd $(dirname $0); pwd) | ||
|
||
echo "======install gui====" | ||
cd ${script_dir}/gui && npm install -y --unsafe-perm=true | ||
cd ${project_dir}/gui && npm install | ||
|
||
echo "======install blocks=====" | ||
cd ${script_dir}/blocks && npm install -y --unsafe-perm=true | ||
cd ${project_dir}/blocks && npm install | ||
echo "======build blocks=====" | ||
cd ${script_dir}/blocks && npm run build | ||
cd ${project_dir}/blocks && npm run build | ||
|
||
echo "======install l10n=====" | ||
cd ${script_dir}/l10n && npm install -y --unsafe-perm=true | ||
cd ${project_dir}/l10n && npm install | ||
echo "======build l10n=====" | ||
cd ${script_dir}/l10n && npm run build | ||
cd ${project_dir}/l10n && npm run build | ||
|
||
echo "======install vm=====" | ||
cd ${script_dir}/vm && npm install -y --unsafe-perm=true | ||
cd ${project_dir}/vm && npm install | ||
echo "======build vm=====" | ||
cd ${script_dir}/vm && npm run build | ||
cd ${project_dir}/vm && npm run build | ||
|
||
echo "======build gui=====" | ||
cd ${script_dir}/gui && npm run build-mac | ||
cd ${script_dir}/gui && rm -rf ../main/app/gui && cp -r ./build ../main/app/gui | ||
cd ${project_dir}/gui && npm run build-mac | ||
cd ${project_dir}/gui && rm -rf ../main/app/gui && cp -r ./build ../main/app/gui | ||
|
||
echo "======build app=====" | ||
cd ${script_dir}/main/app && npm install -y --unsafe-perm=true && ./node_modules/.bin/electron-rebuild serialport | ||
cd ${project_dir}/main/app && npm install && ./node_modules/.bin/electron-rebuild serialport | ||
echo "======build main=====" | ||
cd ${script_dir}/main && npm install -y --unsafe-perm=true && rm -rf build && npm run publish-mac | ||
cd ${project_dir}/main && npm install && rm -rf build && npm run publish-mac | ||
|
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 |
---|---|---|
@@ -1,34 +1,32 @@ | ||
#!/bin/bash | ||
|
||
echo "======start codecraft build=====" | ||
script_dir="/root/workspace/seeed-codecraft_2f88" | ||
export CSC_IDENTITY_AUTO_DISCOVERY=false | ||
export NODE_OPTIONS='--max_old_space_size=10240' | ||
project_dir=$(cd $(dirname $0); pwd) | ||
|
||
echo "======install gui====" | ||
cd ${script_dir}/gui && npm install -y --unsafe-perm=true | ||
cd ${project_dir}/gui && npm install | ||
|
||
echo "======install blocks=====" | ||
cd ${script_dir}/blocks && npm install -y --unsafe-perm=true | ||
cd ${project_dir}/blocks && npm install | ||
echo "======build blocks=====" | ||
cd ${script_dir}/blocks && npm run build | ||
cd ${project_dir}/blocks && npm run build | ||
|
||
echo "======install l10n=====" | ||
cd ${script_dir}/l10n && npm install -y --unsafe-perm=true | ||
cd ${project_dir}/l10n && npm install | ||
echo "======build l10n=====" | ||
cd ${script_dir}/l10n && npm run build | ||
cd ${project_dir}/l10n && npm run build | ||
|
||
echo "======install vm=====" | ||
cd ${script_dir}/vm && npm install -y --unsafe-perm=true | ||
cd ${project_dir}/vm && npm install | ||
echo "======build vm=====" | ||
cd ${script_dir}/vm && npm run build | ||
cd ${project_dir}/vm && npm run build | ||
|
||
echo "======build gui=====" | ||
cd ${script_dir}/gui && npm run build-win | ||
cd ${script_dir}/gui && rm -rf ../main/app/gui && cp -r ./build ../main/app/gui | ||
cd ${project_dir}/gui && npm run build-win | ||
cd ${project_dir}/gui && rm -rf ../main/app/gui && cp -r ./build ../main/app/gui | ||
|
||
echo "======build app=====" | ||
cd ${script_dir}/main/app && npm install -y --unsafe-perm=true && ./node_modules/.bin/electron-rebuild serialport | ||
cd ${project_dir}/main/app && npm install && ./node_modules/.bin/electron-rebuild serialport | ||
echo "======build main=====" | ||
cd ${script_dir}/main && npm install -y --unsafe-perm=true && rm -rf build && npm run publish-win64 | ||
cd ${project_dir}/main && npm install && rm -rf build && npm run publish-win64 | ||
|