File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash
2-
3- PWD=$( pwd)
2+ set -e
43
54# this script's parent directory
65cd $( dirname $0 )
76parentDir=$( pwd)
87
9- cd ${PWD}
10-
11- npm run webpack
12-
8+ [ ! -d output ] && mkdir output
139cd output
1410
1511cp ${parentDir} /src/info.plist.xml ./info.plist
@@ -19,13 +15,17 @@ echo "Generating icons ..."
1915cd icons
2016node ${parentDir} /lib/genicons.js
2117cd ..
22-
2318cp icons/beer_mug.png ./icon.png
2419
2520echo " Creating emoji pack ..."
26- node ../lib/genpack.js
21+ cd ${parentDir}
22+ node ./lib/genpack.js
23+
24+ echo " Generating jxa compatible source ..."
25+ npm run webpack
2726
2827echo " Updating version ..."
28+ cd output
2929curVersion=$( node -e " console.log(require('${parentDir} /package.json').version)" )
3030sed -i ' ' ' s/{{version}}/' ${curVersion} ' /' info.plist
3131
Original file line number Diff line number Diff line change 11{
2- "version" : " 1.11.0 " ,
2+ "version" : " 1.11.1 " ,
33 "scripts" : {
44 "webpack" : " webpack" ,
55 "clean" : " rm -f *.alfredworkflow; rm -rf output/*" ,
2929 "webpack" : " ^5.67.0" ,
3030 "webpack-cli" : " ^4.9.2"
3131 }
32- }
32+ }
You can’t perform that action at this time.
0 commit comments