chore: rename green to portable

This commit is contained in:
GyDi 2022-04-13 01:17:40 +08:00
parent 1a91249da2
commit c2449e53c4
No known key found for this signature in database
GPG Key ID: 1C95E0D3467B3084
3 changed files with 7 additions and 7 deletions

View File

@ -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 }}

View File

@ -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": {

View File

@ -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);