Skip to content

Commit 3021051

Browse files
authored
Merge pull request element-hq#13122 from dannycolin/fix-build-jitsi
fix build:jitsi scripts crash caused by a missing folder
2 parents c0b4ab9 + c128e75 commit 3021051

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"clean": "rimraf lib webapp electron_app/dist",
3939
"build": "yarn clean && yarn build:genfiles && yarn build:compile && yarn build:types && yarn build:bundle",
4040
"build-stats": "yarn clean && yarn build:genfiles && yarn build:compile && yarn build:types && yarn build:bundle-stats",
41-
"build:jitsi": "curl -s https://jitsi.riot.im/libs/external_api.min.js > ./webapp/jitsi_external_api.min.js",
41+
"build:jitsi": "scripts/build-jitsi.sh",
4242
"build:res": "node scripts/copy-res.js",
4343
"build:genfiles": "yarn reskindex && yarn build:res && yarn build:jitsi",
4444
"build:modernizr": "modernizr -c .modernizr.json -d src/vector/modernizr.js",

scripts/build-jitsi.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
3+
if [[ ! -f "./webapp" ]]; then
4+
mkdir "./webapp"
5+
fi
6+
7+
curl -s https://jitsi.riot.im/libs/external_api.min.js > ./webapp/jitsi_external_api.min.js

0 commit comments

Comments
 (0)