From 6ff7461f27aa087014328effcc274dd7f5a0fe80 Mon Sep 17 00:00:00 2001 From: Kuingsmile <96409857+Kuingsmile@users.noreply.github.com> Date: Sun, 11 Jan 2026 14:18:56 +0800 Subject: [PATCH] :package: Chore(custom): optimize for linux building --- .github/workflows/main.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8b726e55..32b7579b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -135,6 +135,10 @@ jobs: "Linux x64") jq '.linux.target[0].arch = ["x64"]' electron-builder.json > tmp.json && mv tmp.json electron-builder.json jq '.linux.target[1].arch = ["x64"]' electron-builder.json > tmp.json && mv tmp.json electron-builder.json + # Remove snap if publish is true + if [ "${{ github.event.inputs.publish_enabled }}" == "true" ]; then + jq 'del(.linux.target[] | select(.target == "snap"))' electron-builder.json > tmp.json && mv tmp.json electron-builder.json + fi ;; "Linux ARM64") jq '.linux.target[0].arch = ["arm64"]' electron-builder.json > tmp.json && mv tmp.json electron-builder.json