Skip to content

Commit

Permalink
Update release scripts
Browse files Browse the repository at this point in the history
Former-commit-id: a43ccf9
  • Loading branch information
nini22P committed May 7, 2023
1 parent cccc941 commit 49b3d6d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions build-electron.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ cd packages/WebGAL-electron
yarn
yarn build
cd ../terre2/assets/templates/
mkdir WebGAL_Electron_template
mkdir WebGAL_Electron_Template
cd ../../../WebGAL-electron
cp -rf build/win-unpacked/* ../../packages/terre2/assets/templates/WebGAL_Electron_template/
cp -rf build/win-unpacked/* ../../packages/terre2/assets/templates/WebGAL_Electron_Template/
5 changes: 3 additions & 2 deletions release-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ cd ../../
cd packages/WebGAL-electron
yarn
yarn build
mkdir ../../release/assets/templates/WebGAL_Electron_template
cp -rf build/linux-unpacked/* ../../release/assets/templates/WebGAL_Electron_template/
mkdir ../../release/assets/templates/WebGAL_Electron_Template
cp -rf build/linux-unpacked/* ../../release/assets/templates/WebGAL_Electron_Template/
cd ../../

# 克隆 WebGAL Android 模板
Expand All @@ -47,6 +47,7 @@ cd release
# 删除冗余文件
rm -rf Exported_Games/*
rm -rf public/games/*
rm -rf public/games/.gitkeep
rm -rf assets/templates/WebGAL_Template/game/video/*
rm -rf assets/templates/WebGAL_Template/game/video/.gitkeep
rm -rf assets/templates/WebGAL_Android_Template/.git
Expand Down
5 changes: 3 additions & 2 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ cd ../../
cd packages/WebGAL-electron
yarn
yarn build
mkdir ../../release/assets/templates/WebGAL_Electron_template
cp -rf build/win-unpacked/* ../../release/assets/templates/WebGAL_Electron_template/
mkdir ../../release/assets/templates/WebGAL_Electron_Template
cp -rf build/win-unpacked/* ../../release/assets/templates/WebGAL_Electron_Template/
cd ../../

# 克隆 WebGAL Android 模板
Expand All @@ -45,6 +45,7 @@ cd release
# 删除冗余文件
rm -rf Exported_Games/*
rm -rf public/games/*
rm -rf public/games/.gitkeep
rm -rf assets/templates/WebGAL_Template/game/video/*
rm -rf assets/templates/WebGAL_Template/game/video/.gitkeep
rm -rf assets/templates/WebGAL_Android_Template/.git
Expand Down

0 comments on commit 49b3d6d

Please sign in to comment.