Skip to content

Commit

Permalink
fix: vial init
Browse files Browse the repository at this point in the history
  • Loading branch information
darakuneko committed Aug 2, 2023
1 parent 222d47e commit 7e4ce52
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions gpk_fwmaker/server/src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,12 @@ app.post('/build/qmk', async (req, res) => {
app.post('/build/vial', async (req, res) => {
const fn = async () => {
try {
const repo = 'vial'
const kb = req.body.kb
const kbDir = kb.replace(/\/.*/g, "")
const km = req.body.km.replace(/:.*|flash/g, "")
const commit = "commit" in req.body && req.body.commit.length > 0 ? req.body.commit : "vial"
await cmd.checkoutVial(res, 'vial', commit)
const commit = "commit" in req.body && req.body.commit.length > 0 ? req.body.commit : repo
await cmd.checkoutVial(res, repo, commit)
await cmd.cpConfigsToVial(kbDir)
await cmd.buildVialFirmware(res, kb, km)
} catch (e) { streamError(res, e) }
Expand Down

0 comments on commit 7e4ce52

Please sign in to comment.