Skip to content

Commit

Permalink
Merge pull request #77 from jsumners/fix-build
Browse files Browse the repository at this point in the history
  • Loading branch information
jsumners authored Jan 31, 2022
2 parents 8ada3e8 + 88f1cf1 commit 7658e90
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
16 changes: 8 additions & 8 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
#!/bin/bash

PWD=$(pwd)
set -e

# this script's parent directory
cd $(dirname $0)
parentDir=$(pwd)

cd ${PWD}

npm run webpack

[ ! -d output ] && mkdir output
cd output

cp ${parentDir}/src/info.plist.xml ./info.plist
Expand All @@ -19,13 +15,17 @@ echo "Generating icons ..."
cd icons
node ${parentDir}/lib/genicons.js
cd ..

cp icons/beer_mug.png ./icon.png

echo "Creating emoji pack ..."
node ../lib/genpack.js
cd ${parentDir}
node ./lib/genpack.js

echo "Generating jxa compatible source ..."
npm run webpack

echo "Updating version ..."
cd output
curVersion=$(node -e "console.log(require('${parentDir}/package.json').version)")
sed -i '' 's/{{version}}/'${curVersion}'/' info.plist

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.11.0",
"version": "1.11.1",
"scripts": {
"webpack": "webpack",
"clean": "rm -f *.alfredworkflow; rm -rf output/*",
Expand Down Expand Up @@ -29,4 +29,4 @@
"webpack": "^5.67.0",
"webpack-cli": "^4.9.2"
}
}
}

0 comments on commit 7658e90

Please sign in to comment.