-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
53 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: "release" | ||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
release: | ||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
matrix: | ||
os: [macos-latest, ubuntu-latest, windows-latest] | ||
|
||
steps: | ||
- name: Check out Git repository | ||
uses: actions/checkout@v1 | ||
|
||
- name: Install Node.js, NPM and Yarn | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12 | ||
- name: get version | ||
run: echo "PACKAGE_VERSION=$(node -p "require('./package.json').version")" >> $GITHUB_ENV | ||
- name: install app dependencies and build it | ||
run: npm i && npm run dist | ||
- name: Build/release Electron app | ||
uses: samuelmeuli/action-electron-builder@v1 | ||
with: | ||
# GitHub token, automatically provided to the action | ||
# (No need to define this secret in the repo settings) | ||
github_token: ${{ secrets.github_token }} | ||
|
||
# If the commit is tagged with a version (e.g. "v1.0.0"), | ||
# release the app after building | ||
release: ${{ startsWith(github.ref, 'refs/tags/v') }} | ||
# release: ${{ env.PACKAGE_VERSION }} | ||
# release: v1.0.0 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,9 +4,10 @@ | |
"description": "betterkonachan electron version", | ||
"main": "dist/main.js", | ||
"scripts": { | ||
"dist": "npx rimraf dist/* && npm run main:build && npm run render:build && npm run copy && electron-builder --win --x64", | ||
"dist": "npx rimraf dist/* && npm run main:build && npm run render:build && npm run copy && npm run copy:icon", | ||
"convert": "convert -density 512x512 -background transparent ./assets/image/icon.svg -define icon:auto-resize -colors 512 ./assets/image/icon.ico", | ||
"copy": "copyfiles -f ./assets/image/splash.svg ./assets/image/icon.ico dist", | ||
"copy:icon": "copyfiles -f ./icon/* dist", | ||
"render:dev": "webpack-dev-server --inline --config ./webpack/render.dev.ts", | ||
"render:build": "webpack --config ./webpack/render.prod.ts", | ||
"lint": "eslint ./**/*.{ts,tsx,js}", | ||
|
@@ -15,24 +16,36 @@ | |
"codecov": "codecov", | ||
"main:start": "electron .", | ||
"main:watch": "webpack --mode development --watch --config ./webpack/main.ts", | ||
"main:build": "webpack --mode production --config ./webpack/main.ts" | ||
"main:build": "webpack --mode production --config ./webpack/main.ts", | ||
"postinstall": "electron-builder install-app-deps", | ||
"build": "electron-builder", | ||
"release": "electron-builder --publish" | ||
}, | ||
"keywords": [ | ||
"betterkonachan", | ||
"electron" | ||
], | ||
"author": "[email protected]", | ||
"build": { | ||
"appId": "BetterKonacha", | ||
"appId": "Konachan", | ||
"files": [ | ||
"./dist/**/*" | ||
], | ||
"mac": { | ||
"target": ["default"], | ||
"category": "public.app-category.lifestyle", | ||
"icon": "dist/icon.icns" | ||
}, | ||
"win": { | ||
"target": [ | ||
"nsis", | ||
"zip" | ||
], | ||
"icon": "dist/icon.ico" | ||
}, | ||
"linux": { | ||
"target": ["AppImage"], | ||
"category": "Office" | ||
} | ||
}, | ||
"pre-commit": [ | ||
|