feat: add desktop repo (#1071)

This commit is contained in:
Mo
2022-06-07 11:52:15 -05:00
committed by GitHub
parent 0bb12db948
commit 0b7ce82aaa
135 changed files with 17821 additions and 180 deletions

View File

@@ -0,0 +1,25 @@
import { spawn } from 'child_process'
import fs from 'fs'
import path from 'path'
import { getLatestBuiltFilesList } from './utils.mjs'
;(async () => {
const files = await getLatestBuiltFilesList()
files.push('SHA256SUMS')
const versionNumber = JSON.parse(fs.readFileSync('./package.json')).version
console.log('Creating draft release...')
const child = spawn('gh', [
'release',
'create',
`v${versionNumber}`,
...files.map((name) => path.join('dist', name)),
'--target',
'main',
'--draft',
'--prerelease',
'--title',
versionNumber,
])
child.stdout.pipe(process.stdout)
child.stderr.pipe(process.stderr)
})()