From 63d8b895f32f439709b017a4f67e8ac859b99643 Mon Sep 17 00:00:00 2001 From: hiento09 <136591877+hiento09@users.noreply.github.com> Date: Tue, 10 Oct 2023 17:30:59 +0700 Subject: [PATCH] Fix icon error for linux app (#316) * Create icon folder for linux building app * CI Test: add clean workspace --------- Co-authored-by: Hien To --- .github/workflows/linter-and-test.yml | 15 +++++++++++++++ electron/{ => icons}/icon.png | Bin electron/package.json | 11 ++++++++++- 3 files changed, 25 insertions(+), 1 deletion(-) rename electron/{ => icons}/icon.png (100%) diff --git a/.github/workflows/linter-and-test.yml b/.github/workflows/linter-and-test.yml index e6a69df27..f8bbcd341 100644 --- a/.github/workflows/linter-and-test.yml +++ b/.github/workflows/linter-and-test.yml @@ -26,6 +26,12 @@ jobs: test-on-macos: runs-on: [self-hosted, macOS, macos-desktop] steps: + - name: 'Cleanup build folder' + run: | + ls -la ./ + rm -rf ./* || true + rm -rf ./.??* || true + ls -la ./ - name: Getting the repo uses: actions/checkout@v3 @@ -48,6 +54,9 @@ jobs: test-on-windows: runs-on: [self-hosted, Windows, windows-desktop] steps: + - name: Clean workspace + run: | + Remove-Item -Path .\* -Force -Recurse - name: Getting the repo uses: actions/checkout@v3 @@ -68,6 +77,12 @@ jobs: test-on-ubuntu: runs-on: [self-hosted, Linux, ubuntu-desktop] steps: + - name: 'Cleanup build folder' + run: | + ls -la ./ + rm -rf ./* || true + rm -rf ./.??* || true + ls -la ./ - name: Getting the repo uses: actions/checkout@v3 diff --git a/electron/icon.png b/electron/icons/icon.png similarity index 100% rename from electron/icon.png rename to electron/icons/icon.png diff --git a/electron/package.json b/electron/package.json index 5df518e7a..615659dd6 100644 --- a/electron/package.json +++ b/electron/package.json @@ -32,7 +32,16 @@ "entitlementsInherit": "./entitlements.mac.plist", "notarize": { "teamId": "YT49P7GXG4" - } + }, + "icon": "icons/icon.png" + }, + "linux": { + "target": ["deb"], + "category": "Utility", + "icon": "icons/" + }, + "win": { + "icon": "icons/icon.png" }, "artifactName": "jan-${os}-${arch}-${version}.${ext}" },