Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Commit

Permalink
Windows build should work now
Browse files Browse the repository at this point in the history
  • Loading branch information
Rami-Sabbagh committed Nov 12, 2019
1 parent 8198ecb commit f2e4b2d
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/build-templates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ jobs:
set /p LOVE_VERSION=<%GITHUB_WORKSPACE%\LOVE_VERSION.txt
wget -O %GITHUB_WORKSPACE%\love_win32.zip https://bitbucket.org/rude/love/downloads/love-%LOVE_VERSION%-win32.zip
7z x %GITHUB_WORKSPACE%\love_win32.zip -o%GITHUB_WORKSPACE%\love_win32
move /Y %GITHUB_WORKSPACE%\love_win32\love-%LOVE_VERSION%.0-win32\*.* %GITHUB_WORKSPACE%\love_win32\
del /Q %GITHUB_WORKSPACE%\love_win32\love-%LOVE_VERSION%.0-win32
move /Y %GITHUB_WORKSPACE%\love_win32\love-%LOVE_VERSION%-win32\*.* %GITHUB_WORKSPACE%\love_win32\
del /Q %GITHUB_WORKSPACE%\love_win32\love-%LOVE_VERSION%-win32
- name: Patch LÖVE 32-bit
shell: cmd
Expand All @@ -48,6 +48,7 @@ jobs:
copy .\windows\icon.ico .\love_win32\game.ico
echo Adding license files
copy .\LIKO-12-license.txt .\love_win32\LIKO-12-license.txt
move .\love_win32\license.txt .\love_win32\LOVE-license.txt
echo Patching love.exe icon
.\resource_hacker\ResourceHacker.exe -open .\love_win32\love.exe -save .\love_win32\love.exe -action addoverwrite -res .\love_win32\love.ico -mask ICONGROUP,1,1033 -log CONSOLE
echo Patching lovec.exe icon
Expand All @@ -56,6 +57,8 @@ jobs:
.\resource_hacker\ResourceHacker.exe -open .\love_win32\love.exe -save .\love_win32\love.exe -action addoverwrite -res .\windows\VersionInfo_love.res -mask VERSIONINFO,1,1033 -log CONSOLE
echo Patching lovec.exe VersionInfo
.\resource_hacker\ResourceHacker.exe -open .\love_win32\lovec.exe -save .\love_win32\lovec.exe -action addoverwrite -res .\windows\VersionInfo_lovec.res -mask VERSIONINFO,1,1033 -log CONSOLE
echo Removing readme.txt
del /Q .\love_win32\readme.txt
- name: Upload love_win32 artifact
uses: actions/upload-artifact@v1
Expand All @@ -69,8 +72,8 @@ jobs:
set /p LOVE_VERSION=<%GITHUB_WORKSPACE%\LOVE_VERSION.txt
wget -O %GITHUB_WORKSPACE%\love_win64.zip https://bitbucket.org/rude/love/downloads/love-%LOVE_VERSION%-win64.zip
7z x %GITHUB_WORKSPACE%\love_win64.zip -o%GITHUB_WORKSPACE%\love_win64
move /Y %GITHUB_WORKSPACE%\love_win64\love-%LOVE_VERSION%.0-win64\*.* %GITHUB_WORKSPACE%\love_win64\
del /Q %GITHUB_WORKSPACE%\love_win64\love-%LOVE_VERSION%.0-win64
move /Y %GITHUB_WORKSPACE%\love_win64\love-%LOVE_VERSION%-win64\*.* %GITHUB_WORKSPACE%\love_win64\
del /Q %GITHUB_WORKSPACE%\love_win64\love-%LOVE_VERSION%-win64
- name: Patch LÖVE 64-bit
shell: cmd
Expand All @@ -85,6 +88,7 @@ jobs:
copy .\windows\icon.ico .\love_win64\game.ico
echo Adding license files
copy .\LIKO-12-license.txt .\love_win64\LIKO-12-license.txt
move .\love_win64\license.txt .\love_win64\LOVE-license.txt
echo Patching love.exe icon
.\resource_hacker\ResourceHacker.exe -open .\love_win64\love.exe -save .\love_win64\love.exe -action addoverwrite -res .\love_win64\love.ico -mask ICONGROUP,1,1033 -log CONSOLE
echo Patching lovec.exe icon
Expand All @@ -93,6 +97,8 @@ jobs:
.\resource_hacker\ResourceHacker.exe -open .\love_win64\love.exe -save .\love_win64\love.exe -action addoverwrite -res .\windows\VersionInfo_love.res -mask VERSIONINFO,1,1033 -log CONSOLE
echo Patching lovec.exe VersionInfo
.\resource_hacker\ResourceHacker.exe -open .\love_win64\lovec.exe -save .\love_win64\lovec.exe -action addoverwrite -res .\windows\VersionInfo_lovec.res -mask VERSIONINFO,1,1033 -log CONSOLE
echo Removing readme.txt
del /Q .\love_win32\readme.txt
- name: Upload love_win64 artifact
uses: actions/upload-artifact@v1
Expand Down

0 comments on commit f2e4b2d

Please sign in to comment.