From 0288289b41a232d23d96d28106177f349a92a6b1 Mon Sep 17 00:00:00 2001 From: iosh Date: Mon, 2 Dec 2024 17:40:20 +0800 Subject: [PATCH 1/3] chore: update build script --- .github/workflows/pre-release.yaml | 9 ++++----- .github/workflows/prod-release.yaml | 7 +++---- .yarn/versions/c4d6a83d.yml | 2 -- package.json | 8 ++++---- 4 files changed, 11 insertions(+), 15 deletions(-) delete mode 100644 .yarn/versions/c4d6a83d.yml diff --git a/.github/workflows/pre-release.yaml b/.github/workflows/pre-release.yaml index f2d27999..54303572 100644 --- a/.github/workflows/pre-release.yaml +++ b/.github/workflows/pre-release.yaml @@ -114,11 +114,10 @@ jobs: - name: zip files run: | - cd ./dist - zip -r ./chrome.zip ./chrome - zip -r ./firefox.zip ./firefox - zip -r ./edge.zip ./edge - + cd ./dist/chrome && zip -FS -r ../chrome.zip . + cd ../firefox && zip -FS -r ../firefox.zip . + cd ../edge && zip -FS -r ../edge.zip . + - uses: shogo82148/actions-upload-release-asset@v1 with: upload_url: ${{ steps.create_release.outputs.upload_url }} diff --git a/.github/workflows/prod-release.yaml b/.github/workflows/prod-release.yaml index e1ee3c28..df69594b 100644 --- a/.github/workflows/prod-release.yaml +++ b/.github/workflows/prod-release.yaml @@ -102,10 +102,9 @@ jobs: - name: zip files run: | - cd ./dist - zip -r ./chrome.zip ./chrome - zip -r ./firefox.zip ./firefox - zip -r ./edge.zip ./edge + cd ./dist/chrome && zip -FS -r ../chrome.zip . + cd ../firefox && zip -FS -r ../firefox.zip . + cd ../edge && zip -FS -r ../edge.zip . - uses: shogo82148/actions-upload-release-asset@v1 with: diff --git a/.yarn/versions/c4d6a83d.yml b/.yarn/versions/c4d6a83d.yml deleted file mode 100644 index f66bb983..00000000 --- a/.yarn/versions/c4d6a83d.yml +++ /dev/null @@ -1,2 +0,0 @@ -declined: - - helios diff --git a/package.json b/package.json index 497578d8..8f18e538 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "helios", "private": true, - "version": "2.7.7", + "version": "2.7.8", "workspaces": [ "websites/*", "packages/doc-ui/*", @@ -63,9 +63,9 @@ "dev:chrome": "cross-env NODE_ENV=development cross-env TARGET_BROWSER=chrome webpack --config ./scripts/webpack.config.dev.mjs", "dev:firefox": "cross-env NODE_ENV=development cross-env TARGET_BROWSER=firefox webpack --config ./scripts/webpack.config.dev.mjs", "dev:edge": "cross-env NODE_ENV=development cross-env TARGET_BROWSER=edge webpack --config ./scripts/webpack.config.dev.mjs", - "build:chrome": "cross-env NODE_ENV=production cross-env TARGET_BROWSER=chrome webpack --config ./scripts/webpack.config.prod.mjs", - "build:firefox": "cross-env NODE_ENV=production cross-env TARGET_BROWSER=firefox webpack --config ./scripts/webpack.config.prod.mjs", - "build:edge": "cross-env NODE_ENV=production cross-env TARGET_BROWSER=edge webpack --config ./scripts/webpack.config.prod.mjs", + "build:chrome": "cross-env NODE_ENV=production cross-env TARGET_BROWSER=chrome webpack --config ./scripts/webpack.config.prod.mjs && yarn removeEmptyFile", + "build:firefox": "cross-env NODE_ENV=production cross-env TARGET_BROWSER=firefox webpack --config ./scripts/webpack.config.prod.mjs && yarn removeEmptyFile", + "build:edge": "cross-env NODE_ENV=production cross-env TARGET_BROWSER=edge webpack --config ./scripts/webpack.config.prod.mjs && yarn removeEmptyFile", "build": "yarn build:chrome && yarn build:firefox && yarn build:edge && yarn removeEmptyFile", "removeEmptyFile": "rm -rf ./dist/*/manifest.js" }, From a44c7d4d2b241d885d069ffd76b1c5a86a6117ac Mon Sep 17 00:00:00 2001 From: iosh Date: Mon, 2 Dec 2024 17:41:57 +0800 Subject: [PATCH 2/3] chore: version check --- .yarn/versions/7f49ff5b.yml | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .yarn/versions/7f49ff5b.yml diff --git a/.yarn/versions/7f49ff5b.yml b/.yarn/versions/7f49ff5b.yml new file mode 100644 index 00000000..f66bb983 --- /dev/null +++ b/.yarn/versions/7f49ff5b.yml @@ -0,0 +1,2 @@ +declined: + - helios From b6e54c61a33afcc886603925ebe3fd70035ee91d Mon Sep 17 00:00:00 2001 From: iosh Date: Mon, 2 Dec 2024 18:00:13 +0800 Subject: [PATCH 3/3] chore: update removeEmptyFile --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 8f18e538..8415448c 100644 --- a/package.json +++ b/package.json @@ -67,7 +67,7 @@ "build:firefox": "cross-env NODE_ENV=production cross-env TARGET_BROWSER=firefox webpack --config ./scripts/webpack.config.prod.mjs && yarn removeEmptyFile", "build:edge": "cross-env NODE_ENV=production cross-env TARGET_BROWSER=edge webpack --config ./scripts/webpack.config.prod.mjs && yarn removeEmptyFile", "build": "yarn build:chrome && yarn build:firefox && yarn build:edge && yarn removeEmptyFile", - "removeEmptyFile": "rm -rf ./dist/*/manifest.js" + "removeEmptyFile": "find ./dist -name \"manifest.js\" -type f -delete" }, "devDependencies": { "@babel/core": "7.17.9",