From 56afd78e9e6ec22b5166ac3069f74cd8e28b0028 Mon Sep 17 00:00:00 2001 From: goleer Date: Sun, 19 Dec 2021 12:05:56 +0800 Subject: [PATCH] modify package.json and delete .github --- .github/FUNDING.yml | 5 -- .github/ISSUE_TEMPLATE/1-Bug_report.md | 67 --------------------- .github/ISSUE_TEMPLATE/2-Question.md | 19 ------ .github/ISSUE_TEMPLATE/3-Feature_request.md | 15 ----- .github/config.yml | 6 -- .github/stale.yml | 17 ------ .github/workflows/publish.yml | 45 -------------- .github/workflows/test.yml | 33 ---------- package.json | 13 +++- 9 files changed, 11 insertions(+), 209 deletions(-) delete mode 100644 .github/FUNDING.yml delete mode 100644 .github/ISSUE_TEMPLATE/1-Bug_report.md delete mode 100644 .github/ISSUE_TEMPLATE/2-Question.md delete mode 100644 .github/ISSUE_TEMPLATE/3-Feature_request.md delete mode 100644 .github/config.yml delete mode 100644 .github/stale.yml delete mode 100644 .github/workflows/publish.yml delete mode 100644 .github/workflows/test.yml diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml deleted file mode 100644 index 5b774d1..0000000 --- a/.github/FUNDING.yml +++ /dev/null @@ -1,5 +0,0 @@ -# These are supported funding model platforms - -github: [electron-react-boilerplate, amilajack] -patreon: amilajack -open_collective: electron-react-boilerplate-594 diff --git a/.github/ISSUE_TEMPLATE/1-Bug_report.md b/.github/ISSUE_TEMPLATE/1-Bug_report.md deleted file mode 100644 index 245ab77..0000000 --- a/.github/ISSUE_TEMPLATE/1-Bug_report.md +++ /dev/null @@ -1,67 +0,0 @@ ---- -name: Bug report -about: You're having technical issues. 🐞 -labels: 'bug' ---- - - - -## Prerequisites - - - -- [ ] Using npm -- [ ] Using an up-to-date [`main` branch](https://github.com/electron-react-boilerplate/electron-react-boilerplate/tree/main) -- [ ] Using latest version of devtools. [Check the docs for how to update](https://electron-react-boilerplate.js.org/docs/dev-tools/) -- [ ] Tried solutions mentioned in [#400](https://github.com/electron-react-boilerplate/electron-react-boilerplate/issues/400) -- [ ] For issue in production release, add devtools output of `DEBUG_PROD=true npm run build && npm start` - -## Expected Behavior - - - -## Current Behavior - - - -## Steps to Reproduce - - - - -1. - -2. - -3. - -4. - -## Possible Solution (Not obligatory) - - - -## Context - - - - - -## Your Environment - - - -- Node version : -- electron-react-boilerplate version or branch : -- Operating System and version : -- Link to your project : - - diff --git a/.github/ISSUE_TEMPLATE/2-Question.md b/.github/ISSUE_TEMPLATE/2-Question.md deleted file mode 100644 index 27d4d5d..0000000 --- a/.github/ISSUE_TEMPLATE/2-Question.md +++ /dev/null @@ -1,19 +0,0 @@ ---- -name: Question -about: Ask a question.❓ -labels: 'question' ---- - -## Summary - - - - diff --git a/.github/ISSUE_TEMPLATE/3-Feature_request.md b/.github/ISSUE_TEMPLATE/3-Feature_request.md deleted file mode 100644 index 84663b6..0000000 --- a/.github/ISSUE_TEMPLATE/3-Feature_request.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -name: Feature request -about: You want something added to the boilerplate. 🎉 -labels: 'enhancement' ---- - - diff --git a/.github/config.yml b/.github/config.yml deleted file mode 100644 index 3708b46..0000000 --- a/.github/config.yml +++ /dev/null @@ -1,6 +0,0 @@ -requiredHeaders: - - Prerequisites - - Expected Behavior - - Current Behavior - - Possible Solution - - Your Environment diff --git a/.github/stale.yml b/.github/stale.yml deleted file mode 100644 index 5e2b3ad..0000000 --- a/.github/stale.yml +++ /dev/null @@ -1,17 +0,0 @@ -# Number of days of inactivity before an issue becomes stale -daysUntilStale: 60 -# Number of days of inactivity before a stale issue is closed -daysUntilClose: 7 -# Issues with these labels will never be considered stale -exemptLabels: - - discussion - - security -# Label to use when marking an issue as stale -staleLabel: wontfix -# Comment to post when marking an issue as stale. Set to `false` to disable -markComment: > - This issue has been automatically marked as stale because it has not had - recent activity. It will be closed if no further activity occurs. Thank you - for your contributions. -# Comment to post when closing a stale issue. Set to `false` to disable -closeComment: false diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml deleted file mode 100644 index e23850d..0000000 --- a/.github/workflows/publish.yml +++ /dev/null @@ -1,45 +0,0 @@ -name: Publish - -on: - push: - branches: - - main - -jobs: - publish: - # To enable auto publishing to github, update your electron publisher - # config in package.json > "build" and remove the conditional below - if: ${{ github.repository_owner == 'electron-react-boilerplate' }} - - runs-on: ${{ matrix.os }} - - strategy: - matrix: - os: [macos-latest] - - steps: - - name: Checkout git repo - uses: actions/checkout@v1 - - - name: Install Node and NPM - uses: actions/setup-node@v1 - with: - node-version: 16 - - - name: Install dependencies - run: | - npm install - - - name: Publish releases - env: - # These values are used for auto updates signing - APPLE_ID: ${{ secrets.APPLE_ID }} - APPLE_ID_PASS: ${{ secrets.APPLE_ID_PASS }} - CSC_LINK: ${{ secrets.CSC_LINK }} - CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }} - # This is used for uploading release assets to github - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - npm run postinstall - npm run build - npm exec electron-builder -- --publish always --win --mac --linux diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml deleted file mode 100644 index dec9409..0000000 --- a/.github/workflows/test.yml +++ /dev/null @@ -1,33 +0,0 @@ -name: Test - -on: [push, pull_request] - -jobs: - release: - runs-on: ${{ matrix.os }} - - strategy: - matrix: - os: [macos-latest, windows-latest, ubuntu-latest] - - steps: - - name: Check out Git repository - uses: actions/checkout@v1 - - - name: Install Node.js and NPM - uses: actions/setup-node@v1 - with: - node-version: 16 - - - name: npm install - run: | - npm install - - - name: npm test - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - npm run package - npm run lint - npm exec tsc - npm test diff --git a/package.json b/package.json index 369f699..b4eaaf7 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,7 @@ }, "build": { "productName": "Vector", - "appId": "org.erb.Vector", + "appId": "me.lifan.Vector", "asar": true, "asarUnpack": "**\\*.{node,dll}", "files": [ @@ -73,6 +73,15 @@ "nsis" ] }, + "nsis": { + "oneClick": false, + "perMachine": true, + "allowElevation": true, + "allowToChangeInstallationDirectory": true, + "createDesktopShortcut": true, + "runAfterFinish": false, + "deleteAppDataOnUninstall": true + }, "linux": { "target": [ "AppImage" @@ -111,7 +120,7 @@ "tailwindcss", "ebook reader" ], - "homepage": "https://github.com/electron-react-boilerplate/electron-react-boilerplate#readme", + "homepage": "https://github.com/lifan1727/vector#readme", "jest": { "testURL": "http://localhost/", "testEnvironment": "jsdom",