Skip to content

Commit 7658e90

Browse files
authored
Merge pull request #77 from jsumners/fix-build
2 parents 8ada3e8 + 88f1cf1 commit 7658e90

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

build.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
11
#!/bin/bash
2-
3-
PWD=$(pwd)
2+
set -e
43

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

9-
cd ${PWD}
10-
11-
npm run webpack
12-
8+
[ ! -d output ] && mkdir output
139
cd output
1410

1511
cp ${parentDir}/src/info.plist.xml ./info.plist
@@ -19,13 +15,17 @@ echo "Generating icons ..."
1915
cd icons
2016
node ${parentDir}/lib/genicons.js
2117
cd ..
22-
2318
cp icons/beer_mug.png ./icon.png
2419

2520
echo "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

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

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "1.11.0",
2+
"version": "1.11.1",
33
"scripts": {
44
"webpack": "webpack",
55
"clean": "rm -f *.alfredworkflow; rm -rf output/*",
@@ -29,4 +29,4 @@
2929
"webpack": "^5.67.0",
3030
"webpack-cli": "^4.9.2"
3131
}
32-
}
32+
}

0 commit comments

Comments
 (0)