Skip to content

Commit

Permalink
Merge pull request #99 from TankNee/rebuild/updater
Browse files Browse the repository at this point in the history
[feat]: Implement updater
  • Loading branch information
TankNee authored Jul 1, 2021
2 parents 084a619 + 23d2959 commit 1df5545
Show file tree
Hide file tree
Showing 4 changed files with 91 additions and 172 deletions.
168 changes: 0 additions & 168 deletions .github/workflows/BuildAndRelease.yml

This file was deleted.

80 changes: 80 additions & 0 deletions .github/workflows/Updater.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
# This is a basic workflow to help you get started with Actions

name: Memocast Release And Updater Action

# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches:
- master
# tags:
# - v*

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build-windows:
# The type of runner that the job will run on
runs-on: windows-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Check out branch
uses: actions/checkout@v2
with:
ref: master

- name: Install Node.js, NPM
uses: actions/setup-node@v1
with:
node-version: 14

- name: Build
run: |
npm install
npm run build-publish
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
build-linux:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Check out branch
uses: actions/checkout@v2
with:
ref: master

- name: Install Node.js, NPM
uses: actions/setup-node@v1
with:
node-version: 14
- name: Build
run: |
npm install
npm run build-publish
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
build-mac:
# The type of runner that the job will run on
runs-on: macos-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Check out branch
uses: actions/checkout@v2
with:
ref: master

- name: Install Node.js, NPM
uses: actions/setup-node@v1
with:
node-version: 14
- name: Build
run: |
npm install
npm run build-publish
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cn.memocast.app",
"version": "2.0.1",
"version": "2.0.2",
"description": "An Awesome WizNote Desktop Application",
"productName": "Memocast",
"author": "tanknee <[email protected]>",
Expand All @@ -14,7 +14,7 @@
"lint": "eslint --ext .js,.vue ./",
"dev": "quasar dev -m electron -t mat",
"build-develop": "quasar build -m electron -d",
"build-publish": "quasar build -m electron -P",
"build-publish": "quasar build -m electron -P always",
"build-all": "quasar build -m electron -T all -P",
"build": "quasar build -m electron",
"docs:dev": "vuepress dev docs",
Expand Down
11 changes: 9 additions & 2 deletions quasar.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,10 +197,15 @@ module.exports = function (/* ctx */) {
electronDownload: {
mirror: 'https://npm.taobao.org/mirrors/electron/'
},
publish: {
provider: 'github',
releaseType: 'draft'
},
mac: {
target: [
'dmg'
]
],
artifactName: 'Memocast.dmg'
},
win: {
target: [
Expand All @@ -209,6 +214,7 @@ module.exports = function (/* ctx */) {
legalTrademarks: 'Memocast'
},
nsis: {
artifactName: 'Memocast-setup.exe',
perMachine: false,
oneClick: false,
allowToChangeInstallationDirectory: true
Expand All @@ -217,7 +223,8 @@ module.exports = function (/* ctx */) {
target: [
'AppImage'
],
vendor: 'Memocast'
vendor: 'Memocast',
artifactName: 'Memocast-x86_64.AppImage'
},
files: [
'**/*',
Expand Down

0 comments on commit 1df5545

Please sign in to comment.