Skip to content

Commit

Permalink
Update readme & release.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
monyxie committed Feb 27, 2024
1 parent 6532a4b commit d894399
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ Build steps on Linux:

1. Make sure you have `node`, `yarn`, `pnpm` (for building qr-scanner-wechat), and the `zip` command installed.
1. Open terminal and cd to project root.
1. Run `./release.sh`. After this you'll get two zip files in the `release` directory: `qr-lite-release.zip`
is the installable extension, while `qr-lite-source.zip` is the source code zip.
1. Run `./release.sh`. After this you'll get two zip files in the `release` directory: `qr-lite-release-xxxxxxxx.zip`
is the installable extension, while `qr-lite-source-xxxxxxxx.zip` is the source code zip.

## Translations

Expand Down
6 changes: 4 additions & 2 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@ PROJECT_ROOT="$(pwd)"
DIST_DIR="$PROJECT_ROOT/dist"
RELEASE_DIR="$PROJECT_ROOT/release"

RELEASE_FILE="$RELEASE_DIR/qr-lite-release.zip"
SOURCE_FILE="$RELEASE_DIR/qr-lite-source.zip"
HASH="$(git rev-parse HEAD | cut -c1-8)"

RELEASE_FILE="$RELEASE_DIR/qr-lite-release-$HASH.zip"
SOURCE_FILE="$RELEASE_DIR/qr-lite-source-$HASH.zip"

yarn install && yarn run eslint src && yarn run webpack --mode production

Expand Down

0 comments on commit d894399

Please sign in to comment.