Skip to content

Commit

Permalink
Merge pull request #1449 from Conflux-Chain/fixFirefox
Browse files Browse the repository at this point in the history
chore: update build script
  • Loading branch information
iosh authored Dec 3, 2024
2 parents 4aad95c + b6e54c6 commit f411125
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 14 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/pre-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/prod-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
File renamed without changes.
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "helios",
"private": true,
"version": "2.7.7",
"version": "2.7.8",
"workspaces": [
"websites/*",
"packages/doc-ui/*",
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit f411125

Please sign in to comment.