From 76cf86385e2c4efbea75b7cd3f73ee370e673a23 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Mon, 9 Oct 2023 19:13:31 +0800 Subject: [PATCH] add pkg --- .github/workflows/build.yml | 3 +++ package.json | 13 ++++++++++--- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index cea9dbfc..24f01dc7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -33,6 +33,8 @@ jobs: yarn yarn build zip -r dist.zip dist + npm i -g pkg + yarn pkg - name: Generate Release uses: softprops/action-gh-release@v1 @@ -43,5 +45,6 @@ jobs: prerelease: false files: | dist.zip + dist/MoviePilot-Frontend.exe env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/package.json b/package.json index ea1cc2b1..e0a50326 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,8 @@ { "name": "moviepilot", - "version": "1.2.9-1", + "version": "1.3.0", "private": true, + "bin": "dist/service.js", "scripts": { "dev": "vite --host", "build": "vite build", @@ -9,7 +10,13 @@ "typecheck": "vue-tsc --noEmit", "lint": "eslint . -c .eslintrc.js --fix --ext .ts,.js,.vue,.tsx,.jsx", "build:icons": "tsc -b src/@iconify && node src/@iconify/build-icons.js", - "postinstall": "npm run build:icons" + "postinstall": "npm run build:icons", + "pkg": "pkg . -t node18-win-x64 -o MoviePilot-Frontend.exe" + }, + "pkg": { + "assets": [ + "dist/**/*" + ] }, "dependencies": { "@casl/ability": "^6.2.0", @@ -99,4 +106,4 @@ "resolutions": { "postcss": "8" } -} +} \ No newline at end of file