From 536e3ffb111c6746059a8df8a732bd76b79241ed Mon Sep 17 00:00:00 2001
From: GyDi <segydi@foxmail.com>
Date: Wed, 18 May 2022 14:07:41 +0800
Subject: [PATCH] chore: alpha ci

---
 .github/workflows/alpha.yml |  6 +++---
 src-tauri/tauri.alpha.json  | 13 +++++++++++++
 2 files changed, 16 insertions(+), 3 deletions(-)
 create mode 100644 src-tauri/tauri.alpha.json

diff --git a/.github/workflows/alpha.yml b/.github/workflows/alpha.yml
index f20614b..19fa9ab 100644
--- a/.github/workflows/alpha.yml
+++ b/.github/workflows/alpha.yml
@@ -83,7 +83,7 @@ jobs:
       #     GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
 
       - name: Tauri build Meta
-        uses: tauri-apps/tauri-action@v0
+        uses: tauri-apps/tauri-action@743a37fd53cbdd122910b818b9bef7b7aa019134
         # enable cache even though failed
         continue-on-error: true
         env:
@@ -93,10 +93,10 @@ jobs:
           TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}
         with:
           tagName: alpha
-          configPath: src-tauri/tauri.meta.json
+          args: "-c src-tauri/tauri.alpha.json"
           releaseName: "Clash Verge Alpha"
           releaseBody: "Alpha Version"
-          releaseDraft: false
+          releaseDraft: true
           prerelease: true
 
       - name: Portable Bundle For Meta
diff --git a/src-tauri/tauri.alpha.json b/src-tauri/tauri.alpha.json
new file mode 100644
index 0000000..fd7d268
--- /dev/null
+++ b/src-tauri/tauri.alpha.json
@@ -0,0 +1,13 @@
+{
+    "tauri": {
+      "bundle": {
+        "externalBin": ["sidecar/clash", "sidecar/clash-meta"],
+        "windows": {
+          "wix": {
+            "language": ["zh-CN", "en-US"]
+          }
+        }
+      }
+    }
+  }
+  
\ No newline at end of file
-- 
GitLab