From e47963a0dc11ae77ef14d82d341aafc426c0107b Mon Sep 17 00:00:00 2001 From: dthung1602 Date: Mon, 9 May 2022 22:53:40 +0700 Subject: [PATCH] Small changes --- .gitignore | 2 +- Makefile | 8 +++----- README.md | 2 +- build.sh | 8 ++++---- 4 files changed, 9 insertions(+), 11 deletions(-) diff --git a/.gitignore b/.gitignore index 8f28ede..e6c587a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ .idea/ -build/ +output/ manifest.json diff --git a/Makefile b/Makefile index 934a271..a096ac8 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,6 @@ build: - ./build.sh + bash build.sh v2: - rm manifest.json \ - ln -s manifest-v2.json manifest.json + rm manifest.json && ln -s manifest-v2.json manifest.json v3: - rm manifest.json \ - ln -s manifest-v3.json manifest.json + rm manifest.json && ln -s manifest-v3.json manifest.json diff --git a/README.md b/README.md index 3dbd35d..72d4d6f 100644 --- a/README.md +++ b/README.md @@ -88,7 +88,7 @@ To be updated - Note that Chrome can also load manifest v2, but this will be deprecated in June 2023 4. Package for distribution: - Run `build.sh` (or `make build`) - - The output zip files are in the `build` directory + - The output zip files are in the `output` directory ## Contributing diff --git a/build.sh b/build.sh index be3d1a2..81a6d0c 100644 --- a/build.sh +++ b/build.sh @@ -4,12 +4,12 @@ set -e echo "--> Start" SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) -BUILD_DIR="$SCRIPT_DIR/build" -RAW_CONTENT="${BUILD_DIR}/raw" +OUTPUT_DIR="$SCRIPT_DIR/output" +RAW_CONTENT="${OUTPUT_DIR}/raw" echo "--> Preparing" -if [ -d "$BUILD_DIR" ]; then - rm -rf "$BUILD_DIR" +if [ -d "$OUTPUT_DIR" ]; then + rm -rf "$OUTPUT_DIR" fi mkdir -p "$RAW_CONTENT"