diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index c56a55a6..a87700c8 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -122,7 +122,7 @@ jobs: working-directory: ${{ matrix.build_path }} run: | cp "$GITHUB_WORKSPACE/scripts/${{ env.pkg_name }}.desktop" . - cp "$GITHUB_WORKSPACE/assets/images/icon.png" "./${{ env.pkg_name }}.png" + cp "$GITHUB_WORKSPACE/assets/icons/launcher/sorayomi_icon.png" "./${{ env.pkg_name }}.png" GZIP=-9 tar czf "$GITHUB_WORKSPACE/${{ env.pkg_name }}-${{ github.ref_name }}-${{ matrix.target }}-x64.tar.gz" * - name: Build deb package @@ -157,7 +157,7 @@ jobs: $env:Path += ";C:\Program Files (x86)\WiX Toolset v3.11\bin" $upgradeCode = [guid]::NewGuid().Guid Copy-Item "${env:GITHUB_WORKSPACE}\scripts\${{ env.pkg_name }}-x64.wxs" . - Copy-Item "${env:GITHUB_WORKSPACE}\assets\images\icon.ico" . + Copy-Item "${env:GITHUB_WORKSPACE}\assets\icons\launcher\sorayomi_icon.ico" . heat dir data -cg data -dr data -sreg -sfrag -gg -o data.wxs candle -arch x64 -dVersion="${{ github.ref_name }}" -dUpgradeCode="$upgradeCode" -dIcon="icon.ico" "${{ env.pkg_name }}-x64.wxs" data.wxs light -b data "${{ env.pkg_name }}-x64.wixobj" data.wixobj -o "${{ env.pkg_name }}-${{ github.ref_name }}-${{ matrix.target }}-x64.msi" diff --git a/assets/icons/launcher/sorayomi_icon.ico b/assets/icons/launcher/sorayomi_icon.ico new file mode 100644 index 00000000..0fc088af Binary files /dev/null and b/assets/icons/launcher/sorayomi_icon.ico differ diff --git a/lib/src/constants/gen/assets.gen.dart b/lib/src/constants/gen/assets.gen.dart index c73cdc05..cfbb57f9 100644 --- a/lib/src/constants/gen/assets.gen.dart +++ b/lib/src/constants/gen/assets.gen.dart @@ -47,8 +47,11 @@ class $AssetsIconsLauncherGen { AssetGenImage get fromSuwayomi => const AssetGenImage('assets/icons/launcher/from_suwayomi.png'); + /// File path: assets/icons/launcher/sorayomi_icon.ico + String get sorayomiIconIco => 'assets/icons/launcher/sorayomi_icon.ico'; + /// File path: assets/icons/launcher/sorayomi_icon.png - AssetGenImage get sorayomiIcon => + AssetGenImage get sorayomiIconPng => const AssetGenImage('assets/icons/launcher/sorayomi_icon.png'); /// File path: assets/icons/launcher/sorayomi_preview_icon.png @@ -56,8 +59,8 @@ class $AssetsIconsLauncherGen { const AssetGenImage('assets/icons/launcher/sorayomi_preview_icon.png'); /// List of all assets - List get values => - [fromSuwayomi, sorayomiIcon, sorayomiPreviewIcon]; + List get values => + [fromSuwayomi, sorayomiIconIco, sorayomiIconPng, sorayomiPreviewIcon]; } class Assets {