Skip to content

Commit

Permalink
Update windows.yml.
Browse files Browse the repository at this point in the history
  • Loading branch information
pigpigyyy authored Dec 26, 2023
1 parent bd37eb5 commit 6116e77
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,43 +17,43 @@ jobs:
- name: Setup msbuild
uses: microsoft/setup-msbuild@v1.0.2
- name: Windows build
run: msbuild Project\Windows\Dorothy.sln -p:Configuration=release
run: msbuild Project\Windows\Dora.sln -p:Configuration=release
- name: Pack
if: startsWith(github.ref, 'refs/tags/')
run: |
cd Tools\dora-dora
yarn install --network-timeout 1000000
yarn build
ren build www
7z a ..\..\dorothy-ssr-windows-x86.7z www
7z a ..\..\dora-ssr-windows-x86.7z www
cd ..\..
cd Tools\YarnEditor
yarn
yarn build-win
ren dist yarn-editor
mkdir www
move yarn-editor www
7z a ..\..\dorothy-ssr-windows-x86.7z www\yarn-editor
7z a ..\..\dora-ssr-windows-x86.7z www\yarn-editor
cd ..\..
(cd Assets && 7z a ..\dorothy-ssr-windows-x86.7z Audio && cd ..)
(cd Assets && 7z a ..\dorothy-ssr-windows-x86.7z DragonBones && cd ..)
(cd Assets && 7z a ..\dorothy-ssr-windows-x86.7z Font && cd ..)
(cd Assets && 7z a ..\dorothy-ssr-windows-x86.7z Image\Dorothy.svg && cd ..)
(cd Assets && 7z a ..\dorothy-ssr-windows-x86.7z Image\logo.png && cd ..)
(cd Assets && 7z a ..\dorothy-ssr-windows-x86.7z Model && cd ..)
(cd Assets && 7z a ..\dorothy-ssr-windows-x86.7z Particle && cd ..)
(cd Assets && 7z a ..\dorothy-ssr-windows-x86.7z Script && cd ..)
(cd Assets && 7z a ..\dorothy-ssr-windows-x86.7z Spine && cd ..)
(cd Assets && 7z a ..\dorothy-ssr-windows-x86.7z Doc && cd ..)
(cd Assets && 7z a ..\dorothy-ssr-windows-x86.7z gamecontrollerdb.txt && cd ..)
(cd Assets && 7z a ..\dorothy-ssr-windows-x86.7z LICENSES && cd ..)
(cd Project\Windows\build\Release && 7z a ..\..\..\..\dorothy-ssr-windows-x86.7z Dorothy.exe && cd ..\..\..\..)
ren dorothy-ssr-windows-x86.7z dorothy-ssr-${{ github.ref_name }}-windows-x86.7z
(cd Assets && 7z a ..\dora-ssr-windows-x86.7z Audio && cd ..)
(cd Assets && 7z a ..\dora-ssr-windows-x86.7z DragonBones && cd ..)
(cd Assets && 7z a ..\dora-ssr-windows-x86.7z Font && cd ..)
(cd Assets && 7z a ..\dora-ssr-windows-x86.7z Image\dora.svg && cd ..)
(cd Assets && 7z a ..\dora-ssr-windows-x86.7z Image\logo.png && cd ..)
(cd Assets && 7z a ..\dora-ssr-windows-x86.7z Model && cd ..)
(cd Assets && 7z a ..\dora-ssr-windows-x86.7z Particle && cd ..)
(cd Assets && 7z a ..\dora-ssr-windows-x86.7z Script && cd ..)
(cd Assets && 7z a ..\dora-ssr-windows-x86.7z Spine && cd ..)
(cd Assets && 7z a ..\dora-ssr-windows-x86.7z Doc && cd ..)
(cd Assets && 7z a ..\dora-ssr-windows-x86.7z gamecontrollerdb.txt && cd ..)
(cd Assets && 7z a ..\dora-ssr-windows-x86.7z LICENSES && cd ..)
(cd Project\Windows\build\Release && 7z a ..\..\..\..\dora-ssr-windows-x86.7z Dora.exe && cd ..\..\..\..)
ren dora-ssr-windows-x86.7z dora-ssr-${{ github.ref_name }}-windows-x86.7z
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
dorothy-ssr-${{ github.ref_name }}-windows-x86.7z
dora-ssr-${{ github.ref_name }}-windows-x86.7z
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 6116e77

Please sign in to comment.