From c2449e53c4de65f3da74dba6d2f5ee5a09961cb0 Mon Sep 17 00:00:00 2001 From: GyDi Date: Wed, 13 Apr 2022 01:17:40 +0800 Subject: [PATCH] chore: rename green to portable --- .github/workflows/ci.yml | 2 +- package.json | 4 ++-- scripts/{green.mjs => portable.mjs} | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) rename scripts/{green.mjs => portable.mjs} (87%) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e1028d6..8db1bb6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -76,7 +76,7 @@ jobs: - name: Green zip bundle if: matrix.os == 'windows-latest' run: | - yarn run green + yarn run portable env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/package.json b/package.json index 2d10fe4..37af4c7 100644 --- a/package.json +++ b/package.json @@ -10,9 +10,9 @@ "web:build": "tsc && vite build", "web:serve": "vite preview", "check": "node scripts/check.mjs", - "green": "node scripts/green.mjs", - "publish": "node scripts/publish.mjs", "updater": "node scripts/updater.mjs", + "publish": "node scripts/publish.mjs", + "portable": "node scripts/portable.mjs", "prepare": "husky install" }, "dependencies": { diff --git a/scripts/green.mjs b/scripts/portable.mjs similarity index 87% rename from scripts/green.mjs rename to scripts/portable.mjs index 05a53d3..932abc5 100644 --- a/scripts/green.mjs +++ b/scripts/portable.mjs @@ -6,7 +6,7 @@ import { getOctokit, context } from "@actions/github"; /// Script for ci /// 打包绿色版/便携版 (only Windows) -async function resolveGreen() { +async function resolvePortable() { if (process.platform !== "win32") return; const releaseDir = "./src-tauri/target/release"; @@ -25,10 +25,10 @@ async function resolveGreen() { const packageJson = require("../package.json"); const { version } = packageJson; - const zipFile = `Clash.Verge_${version}_x64_green.zip`; + const zipFile = `Clash.Verge_${version}_x64_portable.zip`; zip.writeZip(zipFile); - console.log("[INFO]: create green zip successfully"); + console.log("[INFO]: create portable zip successfully"); // push release assets if (process.env.GITHUB_TOKEN === undefined) { @@ -53,4 +53,4 @@ async function resolveGreen() { }); } -resolveGreen().catch(console.error); +resolvePortable().catch(console.error);