Skip to content

Commit c128e75

Browse files
committed
fix build:jitsi scripts crash caused by a missing folder
On a freshly install of the developer environment, the build:jitsi try to create a file in ./webapp with the cURL command. However, ./webapp folder doesn't exist and the build script crash. This patch makes sure the appropriate folder is created if it doesn't already exist Signed-off-by: Danny Colin <contact@dannycolin.com>
1 parent c0b4ab9 commit c128e75

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)