Skip to content

Commit

Permalink
back to yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
MakinoharaShoko committed May 15, 2023
1 parent cf637da commit 453eaac
Show file tree
Hide file tree
Showing 4 changed files with 8,053 additions and 14 deletions.
4 changes: 2 additions & 2 deletions build-electron.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cd packages/WebGAL-electron
npm i
npm run build
yarn
yarn build
cd ../terre2/assets/templates/
mkdir WebGAL_Electron_Template
cd ../../../WebGAL-electron
Expand Down
13 changes: 7 additions & 6 deletions release-linux.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
echo "Welcome to build WebGAL Origine, the editor of WebGAL platform."
# 安装依赖
npm i
npm install yarn -g
yarn

# 清理
rm -rf release
Expand All @@ -9,8 +10,8 @@ mkdir release

# 进入 Terre 目录
cd packages/terre2
npm run build
npm run pkg
yarn build
yarn pkg
cd dist
cp -r WebGAL_Terre ../../../release
rm WebGAL_Terre
Expand All @@ -23,14 +24,14 @@ cd ../../
cd packages/origine2
# 低内存,使用下一行限制内存使用
# export NODE_OPTIONS=--max_old_space_size=512000
npm run build
yarn build
cp -rf dist/* ../../release/public/
cd ../../

# 进入 Electron 目录
cd packages/WebGAL-electron
npm i
npm run build
yarn
yarn build
mkdir ../../release/assets/templates/WebGAL_Electron_Template
cp -rf build/linux-unpacked/* ../../release/assets/templates/WebGAL_Electron_Template/
cd ../../
Expand Down
13 changes: 7 additions & 6 deletions release.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
echo "Welcome to build WebGAL Origine, the editor of WebGAL platform."
# 安装依赖
npm i
npm install yarn -g
yarn

# 清理
rm -rf release
Expand All @@ -9,8 +10,8 @@ mkdir release

# 进入 Terre 目录
cd packages/terre2
npm run build
npm run pkg
yarn build
yarn pkg
cd dist
cp -r WebGAL_Terre.exe ../../../release
rm WebGAL_Terre.exe
Expand All @@ -21,14 +22,14 @@ cd ../../

# 进入 Origine 目录
cd packages/origine2
npm run build
yarn build
cp -rf dist/* ../../release/public/
cd ../../

# 进入 Electron 目录
cd packages/WebGAL-electron
npm i
npm run build
yarn
yarn build
mkdir ../../release/assets/templates/WebGAL_Electron_Template
cp -rf build/win-unpacked/* ../../release/assets/templates/WebGAL_Electron_Template/
cd ../../
Expand Down
Loading

0 comments on commit 453eaac

Please sign in to comment.