chore: desktop workflow
This commit is contained in:
3
.github/workflows/components.publish.yml
vendored
3
.github/workflows/components.publish.yml
vendored
@@ -13,9 +13,8 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
token: ${{ secrets.CI_PAT_TOKEN }}
|
token: ${{ secrets.CI_PAT_TOKEN }}
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- uses: actions/setup-node@v1
|
- uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: '16.x'
|
|
||||||
registry-url: 'https://registry.npmjs.org'
|
registry-url: 'https://registry.npmjs.org'
|
||||||
- name: Set up Ruby
|
- name: Set up Ruby
|
||||||
uses: ruby/setup-ruby@v1
|
uses: ruby/setup-ruby@v1
|
||||||
|
|||||||
9
.github/workflows/desktop.release.test.yml
vendored
9
.github/workflows/desktop.release.test.yml
vendored
@@ -15,7 +15,6 @@ jobs:
|
|||||||
uses: ruby/setup-ruby@v1
|
uses: ruby/setup-ruby@v1
|
||||||
- uses: actions/setup-node@v2
|
- uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: '14.x'
|
|
||||||
registry-url: 'https://registry.npmjs.org'
|
registry-url: 'https://registry.npmjs.org'
|
||||||
- run: yarn install
|
- run: yarn install
|
||||||
- run: yarn build:web:all
|
- run: yarn build:web:all
|
||||||
@@ -25,11 +24,6 @@ jobs:
|
|||||||
- name: AppImage
|
- name: AppImage
|
||||||
run: yarn run electron-builder --linux --x64 --ia32 -c.linux.target=AppImage --publish=never
|
run: yarn run electron-builder --linux --x64 --ia32 -c.linux.target=AppImage --publish=never
|
||||||
|
|
||||||
- name: Snap
|
|
||||||
run: |
|
|
||||||
yarn run webpack --config desktop.webpack.prod.js --env snap
|
|
||||||
yarn run electron-builder --linux --x64 -c.linux.target=snap --publish=never
|
|
||||||
|
|
||||||
- name: Upload
|
- name: Upload
|
||||||
uses: actions/upload-artifact@v3.0.0
|
uses: actions/upload-artifact@v3.0.0
|
||||||
with:
|
with:
|
||||||
@@ -43,6 +37,9 @@ jobs:
|
|||||||
run:
|
run:
|
||||||
working-directory: packages/desktop
|
working-directory: packages/desktop
|
||||||
steps:
|
steps:
|
||||||
|
- uses: actions/setup-node@v2
|
||||||
|
with:
|
||||||
|
registry-url: 'https://registry.npmjs.org'
|
||||||
- uses: actions/download-artifact@v3
|
- uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: assets
|
name: assets
|
||||||
|
|||||||
13
.github/workflows/desktop.release.yml
vendored
13
.github/workflows/desktop.release.yml
vendored
@@ -12,7 +12,6 @@ jobs:
|
|||||||
uses: ruby/setup-ruby@v1
|
uses: ruby/setup-ruby@v1
|
||||||
- uses: actions/setup-node@v2
|
- uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: '14.x'
|
|
||||||
registry-url: 'https://registry.npmjs.org'
|
registry-url: 'https://registry.npmjs.org'
|
||||||
- run: yarn install
|
- run: yarn install
|
||||||
- run: yarn build:web:all
|
- run: yarn build:web:all
|
||||||
@@ -24,6 +23,9 @@ jobs:
|
|||||||
run:
|
run:
|
||||||
working-directory: packages/desktop
|
working-directory: packages/desktop
|
||||||
steps:
|
steps:
|
||||||
|
- uses: actions/setup-node@v2
|
||||||
|
with:
|
||||||
|
registry-url: 'https://registry.npmjs.org'
|
||||||
- name: Compile Mac
|
- name: Compile Mac
|
||||||
run: yarn run webpack --config desktop.webpack.prod.js
|
run: yarn run webpack --config desktop.webpack.prod.js
|
||||||
- name: MacX64
|
- name: MacX64
|
||||||
@@ -45,6 +47,9 @@ jobs:
|
|||||||
run:
|
run:
|
||||||
working-directory: packages/desktop
|
working-directory: packages/desktop
|
||||||
steps:
|
steps:
|
||||||
|
- uses: actions/setup-node@v2
|
||||||
|
with:
|
||||||
|
registry-url: 'https://registry.npmjs.org'
|
||||||
- name: Compile for AppImage
|
- name: Compile for AppImage
|
||||||
run: yarn run webpack --config desktop.webpack.prod.js
|
run: yarn run webpack --config desktop.webpack.prod.js
|
||||||
- name: AppImage
|
- name: AppImage
|
||||||
@@ -102,6 +107,9 @@ jobs:
|
|||||||
run:
|
run:
|
||||||
working-directory: packages/desktop
|
working-directory: packages/desktop
|
||||||
steps:
|
steps:
|
||||||
|
- uses: actions/setup-node@v2
|
||||||
|
with:
|
||||||
|
registry-url: 'https://registry.npmjs.org'
|
||||||
- run: yarn run webpack --config desktop.webpack.prod.js
|
- run: yarn run webpack --config desktop.webpack.prod.js
|
||||||
- run: yarn run electron-builder --windows --x64 --ia32 --publish=never
|
- run: yarn run electron-builder --windows --x64 --ia32 --publish=never
|
||||||
|
|
||||||
@@ -118,6 +126,9 @@ jobs:
|
|||||||
run:
|
run:
|
||||||
working-directory: packages/desktop
|
working-directory: packages/desktop
|
||||||
steps:
|
steps:
|
||||||
|
- uses: actions/setup-node@v2
|
||||||
|
with:
|
||||||
|
registry-url: 'https://registry.npmjs.org'
|
||||||
- uses: actions/download-artifact@v3
|
- uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: assets
|
name: assets
|
||||||
|
|||||||
3
.github/workflows/publish.yml
vendored
3
.github/workflows/publish.yml
vendored
@@ -15,9 +15,8 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
token: ${{ secrets.CI_PAT_TOKEN }}
|
token: ${{ secrets.CI_PAT_TOKEN }}
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- uses: actions/setup-node@v1
|
- uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: '16.x'
|
|
||||||
registry-url: 'https://registry.npmjs.org'
|
registry-url: 'https://registry.npmjs.org'
|
||||||
- name: Set up Ruby
|
- name: Set up Ruby
|
||||||
uses: ruby/setup-ruby@v1
|
uses: ruby/setup-ruby@v1
|
||||||
|
|||||||
@@ -4,15 +4,21 @@ import { getLatestBuiltFilesList } from './utils.mjs'
|
|||||||
|
|
||||||
function sha256(filePath) {
|
function sha256(filePath) {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
fs.createReadStream(filePath)
|
try {
|
||||||
.pipe(crypto.createHash('sha256').setEncoding('hex'))
|
fs.createReadStream(filePath)
|
||||||
.on('finish', function () {
|
.pipe(crypto.createHash('sha256').setEncoding('hex'))
|
||||||
resolve(this.read())
|
.on('finish', function () {
|
||||||
})
|
resolve(this.read())
|
||||||
.on('error', reject)
|
})
|
||||||
|
.on('error', reject)
|
||||||
|
} catch (error) {}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
process.on('uncaughtException', function (err) {
|
||||||
|
console.log('Caught exception: ' + err)
|
||||||
|
})
|
||||||
|
|
||||||
;(async () => {
|
;(async () => {
|
||||||
console.log('Writing SHA256 sums to dist/SHA256SUMS')
|
console.log('Writing SHA256 sums to dist/SHA256SUMS')
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user