mirror of
https://github.com/kuaifan/dootask.git
synced 2026-01-25 20:08:12 +00:00
no message
This commit is contained in:
parent
7b3d9d9402
commit
cb3174f7d8
16
.github/workflows/electron-generic.yml
vendored
16
.github/workflows/electron-generic.yml
vendored
@ -7,6 +7,10 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-mac:
|
build-mac:
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
id: [ "com.dootask.task", "com.hitosea.task" ]
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
environment: build
|
environment: build
|
||||||
|
|
||||||
@ -27,17 +31,22 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: 16.x
|
node-version: 16.x
|
||||||
|
|
||||||
- name: Build for MacOS
|
- name: Build for MacOS ${{ matrix.id }}
|
||||||
env:
|
env:
|
||||||
|
APPID: ${{ matrix.id }}
|
||||||
|
PROVIDER: "generic"
|
||||||
APPLEID: ${{ secrets.APPLEID }}
|
APPLEID: ${{ secrets.APPLEID }}
|
||||||
APPLEIDPASS: ${{ secrets.APPLEIDPASS }}
|
APPLEIDPASS: ${{ secrets.APPLEIDPASS }}
|
||||||
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}
|
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}
|
||||||
CSC_LINK: ${{ secrets.CSC_LINK }}
|
CSC_LINK: ${{ secrets.CSC_LINK }}
|
||||||
PROVIDER: "generic"
|
|
||||||
RELEASE_BODY: ${{ steps.changelog.outputs.changes }}
|
RELEASE_BODY: ${{ steps.changelog.outputs.changes }}
|
||||||
run: ./cmd electron build-mac
|
run: ./cmd electron build-mac
|
||||||
|
|
||||||
build-win:
|
build-win:
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
id: [ "com.dootask.task", "com.hitosea.task" ]
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
environment: build
|
environment: build
|
||||||
|
|
||||||
@ -58,9 +67,10 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: 16.x
|
node-version: 16.x
|
||||||
|
|
||||||
- name: Build for Windows
|
- name: Build for Windows ${{ matrix.id }}
|
||||||
shell: powershell
|
shell: powershell
|
||||||
env:
|
env:
|
||||||
|
APPID: ${{ matrix.id }}
|
||||||
PROVIDER: "generic"
|
PROVIDER: "generic"
|
||||||
RELEASE_BODY: ${{ steps.changelog.outputs.changes }}
|
RELEASE_BODY: ${{ steps.changelog.outputs.changes }}
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
name: Build Main
|
name: Build Github
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@ -9,7 +9,7 @@ jobs:
|
|||||||
release:
|
release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
if: ${{ (startsWith(github.event.ref, 'refs/tags/v')) && (github.repository == 'kuaifan/kkFileView') }}
|
if: ${{ (startsWith(github.event.ref, 'refs/tags/v')) && (github.repository == 'kuaifan/dootask') }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
@ -31,10 +31,14 @@ jobs:
|
|||||||
body: ${{ steps.changelog.outputs.changes }}
|
body: ${{ steps.changelog.outputs.changes }}
|
||||||
|
|
||||||
build-mac:
|
build-mac:
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
id: [ "com.dootask.task", "com.hitosea.task" ]
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
environment: build
|
environment: build
|
||||||
|
|
||||||
if: ${{ (startsWith(github.event.ref, 'refs/tags/v')) && (github.repository == 'kuaifan/kkFileView') }}
|
if: ${{ (startsWith(github.event.ref, 'refs/tags/v')) && (github.repository == 'kuaifan/dootask') }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
@ -44,8 +48,10 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: 16.x
|
node-version: 16.x
|
||||||
|
|
||||||
- name: Build for MacOS
|
- name: Build for MacOS ${{ matrix.id }}
|
||||||
env:
|
env:
|
||||||
|
APPID: ${{ matrix.id }}
|
||||||
|
PROVIDER: "github"
|
||||||
APPLEID: ${{ secrets.APPLEID }}
|
APPLEID: ${{ secrets.APPLEID }}
|
||||||
APPLEIDPASS: ${{ secrets.APPLEIDPASS }}
|
APPLEIDPASS: ${{ secrets.APPLEIDPASS }}
|
||||||
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}
|
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}
|
||||||
@ -55,10 +61,14 @@ jobs:
|
|||||||
run: ./cmd electron build-mac
|
run: ./cmd electron build-mac
|
||||||
|
|
||||||
build-win:
|
build-win:
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
id: [ "com.dootask.task", "com.hitosea.task" ]
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
environment: build
|
environment: build
|
||||||
|
|
||||||
if: ${{ (startsWith(github.event.ref, 'refs/tags/v')) && (github.repository == 'kuaifan/kkFileView') }}
|
if: ${{ (startsWith(github.event.ref, 'refs/tags/v')) && (github.repository == 'kuaifan/dootask') }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
@ -68,9 +78,11 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: 16.x
|
node-version: 16.x
|
||||||
|
|
||||||
- name: Build for Windows
|
- name: Build for Windows ${{ matrix.id }}
|
||||||
shell: powershell
|
shell: powershell
|
||||||
env:
|
env:
|
||||||
|
APPID: ${{ matrix.id }}
|
||||||
|
PROVIDER: "github"
|
||||||
GH_TOKEN: ${{ secrets.GH_PAT }}
|
GH_TOKEN: ${{ secrets.GH_PAT }}
|
||||||
EP_PRE_RELEASE: true
|
EP_PRE_RELEASE: true
|
||||||
run: |
|
run: |
|
||||||
16
electron/build.js
vendored
16
electron/build.js
vendored
@ -69,8 +69,6 @@ function genericPublish(url, version) {
|
|||||||
uploadOra.succeed(`${filename} upload successful`)
|
uploadOra.succeed(`${filename} upload successful`)
|
||||||
}).catch(_ => {
|
}).catch(_ => {
|
||||||
uploadOra.fail(`${filename} upload fail`)
|
uploadOra.fail(`${filename} upload fail`)
|
||||||
}).finally(_ => {
|
|
||||||
fse.removeSync(localFile)
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -140,13 +138,13 @@ if (["dev"].includes(argv[2])) {
|
|||||||
child_process.spawn("npm", ["run", "start-quiet"], {stdio: "inherit", cwd: "electron"});
|
child_process.spawn("npm", ["run", "start-quiet"], {stdio: "inherit", cwd: "electron"});
|
||||||
} else if (platform.includes(argv[2])) {
|
} else if (platform.includes(argv[2])) {
|
||||||
// 自动编译
|
// 自动编译
|
||||||
let provider = process.env.PROVIDER === "generic" ? "generic" : "github"
|
let data = config.app.find(({id, publish}) => id === process.env.APPID && publish.provider === process.env.PROVIDER);
|
||||||
config.app.forEach(data => {
|
if (data) {
|
||||||
if (data.publish.provider === provider) {
|
data.platform = argv[2];
|
||||||
data.platform = argv[2];
|
startBuild(data, true)
|
||||||
startBuild(data, true)
|
} else {
|
||||||
}
|
console.warn("not build appid!");
|
||||||
})
|
}
|
||||||
} else {
|
} else {
|
||||||
// 自定义编译
|
// 自定义编译
|
||||||
let appChoices = [];
|
let appChoices = [];
|
||||||
|
|||||||
80
package.json
80
package.json
@ -1,50 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "DooTask",
|
"name": "DooTask",
|
||||||
"version": "0.13.38",
|
"version": "0.13.41",
|
||||||
"description": "DooTask is task management system.",
|
"description": "DooTask is task management system.",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "./cmd dev",
|
"start": "./cmd dev",
|
||||||
"build": "./cmd prod",
|
"build": "./cmd prod",
|
||||||
"version": "node ./version.js"
|
"version": "node ./version.js"
|
||||||
},
|
},
|
||||||
"app": [
|
|
||||||
{
|
|
||||||
"name": "DooTask",
|
|
||||||
"id": "com.dootask.task",
|
|
||||||
"url": "https://dootask.com/",
|
|
||||||
"urls": [
|
|
||||||
"https://dootask.com/",
|
|
||||||
"https://www.dootask.com/"
|
|
||||||
],
|
|
||||||
"publish": {
|
|
||||||
"provider": "github",
|
|
||||||
"owner": "kuaifan",
|
|
||||||
"repo": "dootask"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "DooTask",
|
|
||||||
"id": "com.dootask.task",
|
|
||||||
"url": "https://dootask.com/",
|
|
||||||
"urls": [
|
|
||||||
"https://dootask.com/",
|
|
||||||
"https://www.dootask.com/"
|
|
||||||
],
|
|
||||||
"publish": {
|
|
||||||
"provider": "generic",
|
|
||||||
"url": "https://dootask.com/desktop/publish"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "HitoseaTask",
|
|
||||||
"id": "com.hitosea.task",
|
|
||||||
"url": "https://t.hitosea.com/",
|
|
||||||
"publish": {
|
|
||||||
"provider": "generic",
|
|
||||||
"url": "https://t.hitosea.com/desktop/publish"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"author": {
|
"author": {
|
||||||
"name": "KuaiFan",
|
"name": "KuaiFan",
|
||||||
"email": "aipaw@live.cn",
|
"email": "aipaw@live.cn",
|
||||||
@ -95,5 +57,43 @@
|
|||||||
"vuex": "^3.6.2",
|
"vuex": "^3.6.2",
|
||||||
"webpack": "^5.69.1",
|
"webpack": "^5.69.1",
|
||||||
"webpack-cli": "^4.9.2"
|
"webpack-cli": "^4.9.2"
|
||||||
}
|
},
|
||||||
|
"app": [
|
||||||
|
{
|
||||||
|
"id": "com.dootask.task",
|
||||||
|
"name": "DooTask",
|
||||||
|
"url": "https://dootask.com/",
|
||||||
|
"urls": [
|
||||||
|
"https://dootask.com/",
|
||||||
|
"https://www.dootask.com/"
|
||||||
|
],
|
||||||
|
"publish": {
|
||||||
|
"provider": "github",
|
||||||
|
"owner": "kuaifan",
|
||||||
|
"repo": "dootask"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "com.dootask.task",
|
||||||
|
"name": "DooTask",
|
||||||
|
"url": "https://dootask.com/",
|
||||||
|
"urls": [
|
||||||
|
"https://dootask.com/",
|
||||||
|
"https://www.dootask.com/"
|
||||||
|
],
|
||||||
|
"publish": {
|
||||||
|
"provider": "generic",
|
||||||
|
"url": "https://dootask.com/desktop/publish"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "com.hitosea.task",
|
||||||
|
"name": "HitoseaTask",
|
||||||
|
"url": "https://t.hitosea.com/",
|
||||||
|
"publish": {
|
||||||
|
"provider": "generic",
|
||||||
|
"url": "https://t.hitosea.com/desktop/publish"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
2
public/js/app.js
vendored
2
public/js/app.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
|||||||
964ec56060e5c9b0
|
226c47835bddc9c6
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user