From bd202fd720470fe729d2a795682536f19ba093a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=BE=BE=E5=B3=B0=E7=9A=84=E5=A4=8F=E5=A4=A9?= Date: Sun, 10 Sep 2023 17:38:54 +0800 Subject: [PATCH] chore: update scripts (#20) * chore: update scripts --- .github/workflows/release.yml | 6 +----- package.json | 4 +++- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f9df7e8..15542b3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -46,9 +46,6 @@ jobs: - name: Install dependencies run: npm install --force - - name: Build Package - run: npm run build - - name: Compile artifacts and upload them to github release uses: nick-fields/retry@v2 with: @@ -57,7 +54,6 @@ jobs: retry_wait_seconds: 15 retry_on: error shell: 'bash' - command: npm run build + command: npm run build:main env: GH_TOKEN: ${{ secrets.GH_TOKEN }} - \ No newline at end of file diff --git a/package.json b/package.json index 7be301b..b34f04d 100644 --- a/package.json +++ b/package.json @@ -66,7 +66,9 @@ "dev:watch": "gulp dev-app --watch", "test": "nyc --reporter=lcov --reporter=text mocha", "lint": "eslint . --fix", - "build": "electron-builder build --config .electron-builder.config.js", + "tsc": "tsc -p tsconfig.json", + "build": "npm run tsc && npm run build:main", + "build:main": "electron-builder build --config .electron-builder.config.js", "reset:db": "sh ./scripts/clean-db.sh", "translate": "easy-i18n-cli -c ./i18n.config.js", "translate:check": "npm run translate -- --check",