Skip to content
This repository has been archived by the owner on Mar 13, 2023. It is now read-only.

Commit

Permalink
fix: asset folder not being created on ci server
Browse files Browse the repository at this point in the history
fixes files not being copied over (end up creating an invalid .alfredworkflow file)
  • Loading branch information
moranje committed Oct 2, 2018
1 parent feda5f8 commit 49f97b2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/move-files.ts
@@ -1,3 +1,4 @@
const mkdirp = require('mkdirp')
const shell = require('shelljs')

const argv = Object.assign([], process.argv)
Expand All @@ -18,12 +19,14 @@ function noop() {
}

function moveToTemp() {
mkdirp(`${TEMP_FOLDER}`)
shell.cp('dist/workflow/info.plist', `${TEMP_FOLDER}/info.plist`)
shell.cp('dist/workflow/icon.png', `${TEMP_FOLDER}/icon.png`)
// shell.cp('-R', 'dist/workflow/images/', `${TEMP_FOLDER}/images`)
}

function moveFromTemp() {
mkdirp(`dist/workflow`)
shell.cp(`${TEMP_FOLDER}/info.plist`, 'dist/workflow/info.plist')
shell.cp(`${TEMP_FOLDER}/icon.png`, 'dist/workflow/icon.png')
// shell.cp('-R', `${TEMP_FOLDER}/images/`, 'dist/workflow/images/')
Expand Down

0 comments on commit 49f97b2

Please sign in to comment.