From ff11caf4fca455de9276f0965056cdb93ee90684 Mon Sep 17 00:00:00 2001 From: ParticleG Date: Thu, 18 Jul 2024 17:34:32 +0800 Subject: [PATCH] - Fix linux icon --- .github/workflows/main.yml | 11 +++-------- conf.lua | 4 +++- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4c4bada..b4dc1a1 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -74,11 +74,6 @@ jobs: with: name: ${{ env.CORE_LOVE_ARTIFACT_NAME }} path: ${{ env.CORE_LOVE_PACKAGE_PATH }} - - name: Add icon to love package - run: | - cp ./.github/build/linux/${{ env.BUILD_TYPE }}/icon.png ./icon.png - zip -u ${{ env.CORE_LOVE_PACKAGE_PATH }} ./icon.png - rm ./icon.png - name: Rename love package run: | mkdir -p ${{ env.OUTPUT_FOLDER }} @@ -260,9 +255,9 @@ jobs: name: ${{ env.CORE_LOVE_ARTIFACT_NAME }} - name: Add icon to love package run: | - cp ./.github/build/linux/${{ env.BUILD_TYPE }}/icon.png assets/image/icon.png - zip -u ${{ env.CORE_LOVE_PACKAGE_PATH }} assets/image/icon.png - rm assets/image/icon.png + cp ./.github/build/linux/${{ env.BUILD_TYPE }}/icon.png ./icon.png + zip -u ${{ env.CORE_LOVE_PACKAGE_PATH }} ./icon.png + rm ./icon.png - name: Build Linux packages id: build-packages uses: 26F-Studio/love-actions-linux@v1 diff --git a/conf.lua b/conf.lua index ae124c3..89141ab 100644 --- a/conf.lua +++ b/conf.lua @@ -40,5 +40,7 @@ function love.conf(t) W.minwidth,W.minheight=288,180 end W.title='Smart Bingo v1.0' - W.icon='icon.png' + if fs.getInfo('icon.png') then + W.icon='icon.png' + end end