File size: 306 Bytes
64ead7a
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

BASE=/app
NAME=coze

cd $BASE
echo "waitting fetch $fetch"
curl -s "$fetch" -o helper.zip && unzip helper.zip

cd $BASE/${NAME}-helper
sed -i 's/puppeteerArgs\.push/\/\/ puppeteerArgs\.push/g' src/index.ts
sed -i 's/headless: false,/headless: "new",/g' src/index.ts

npm install && npm run start