chore: desktop workflow

This commit is contained in:
Mo
2022-06-11 20:37:41 -05:00
parent 2aac0294ef
commit 3b70495836
9 changed files with 214 additions and 78 deletions

View File

@@ -0,0 +1,11 @@
import fs from 'fs'
import path from 'path'
import { Command } from './Command'
import { runCommand } from './runCommand'
import { DesktopDir } from './build'
export async function publishSnap() {
const packageJson = await fs.promises.readFile(path.join(DesktopDir, 'package.json'))
const version = JSON.parse(packageJson).version
await runCommand(Command(`snapcraft upload dist/standard-notes-${version}-linux-amd64.snap`, DesktopDir))
}