This commit is contained in:
flaribbit
2020-10-17 23:02:27 +08:00
committed by MrZ626
parent 6e5ad243cd
commit ab969d3612

View File

@@ -11,25 +11,26 @@ jobs:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Download font
run: curl -LO https://github.com/flaribbit/Techmino/releases/download/font/font.ttf
with:
lfs: true
- name: Download love
run: |
curl -LO https://github.com/love2d/love/releases/download/11.3/love-11.3-win64.zip
7z x love-11.3-win64.zip
- name: Download ColdClear
run: |
curl -LO https://github.com/flaribbit/Techmino/releases/download/coldclear/lib.zip
7z x lib.zip -olib
move lib\Windows\x86_64\cold_clear.dll love-11.3-win64
curl -LO https://github.com/26F-Studio/Techmino/releases/download/coldclear/coldclear.zip
7z x coldclear.zip -ocoldclear
move coldclear/win64/cold_clear.dll love-11.3-win64
move coldclear/win64/CCloader.dll love-11.3-win64
- name: Pack Techmino
shell: cmd
run: |
7z a game.zip BGM image lib modes parts SFX VOICE Zframework conf.lua document.txt font.ttf main.lua
7z a game.zip BGM document image modes parts SFX VOICE Zframework conf.lua font.ttf main.lua
move game.zip game.love
cmd /c copy /b love-11.3-win64\love.exe + game.love love-11.3-win64\Techmino.exe
del love-11.3-win64\love.exe
del love-11.3-win64\lovec.exe
cmd /c rmdir /S/Q lib\windows\x86
copy /b love-11.3-win64/love.exe + game.love love-11.3-win64/Techmino.exe
del love-11.3-win64/love.exe
del love-11.3-win64/lovec.exe
- name: Artifact
uses: actions/upload-artifact@v1.0.0
with: