Skip to content

Commit

Permalink
conf.lua替换图标仅对linux生效
Browse files Browse the repository at this point in the history
删ci中非linux也会往工程里放icon.png
  • Loading branch information
MrZ626 committed Nov 18, 2024
1 parent 2226aa2 commit f3f2923
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,6 @@ jobs:
with:
name: ${{ env.CORE_LOVE_ARTIFACT_NAME }}
path: ${{ env.CORE_LOVE_PACKAGE_PATH }}
- name: Add icon to love package
run: |
cp ${{ env.BUILD_ASSETS_FOLDER }}/linux/${{ env.BUILD_TYPE }}/icon.png media/image/icon.png
zip -u ${{ env.CORE_LOVE_PACKAGE_PATH }} media/image/icon.png
rm media/image/icon.png
- name: Rename love package
run: |
mkdir -p ${{ env.OUTPUT_FOLDER }}
Expand Down
2 changes: 1 addition & 1 deletion conf.lua
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ function love.conf(t)
W.minwidth,W.minheight=640,360
end
W.title="Techmino "..require"version".string -- Window title
if fs.getInfo('media/image/icon.png') then
if system=='Linux' and fs.getInfo('media/image/icon.png') then
W.icon='media/image/icon.png'
end
end

0 comments on commit f3f2923

Please sign in to comment.