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/7f49ff5b.yml similarity index 100% rename from .yarn/versions/c4d6a83d.yml rename to .yarn/versions/7f49ff5b.yml diff --git a/package.json b/package.json index 497578d8..8415448c 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,11 +63,11 @@ "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" + "removeEmptyFile": "find ./dist -name \"manifest.js\" -type f -delete" }, "devDependencies": { "@babel/core": "7.17.9",