-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcloneAndBuildFromFrontend.sh
53 lines (33 loc) · 1.94 KB
/
cloneAndBuildFromFrontend.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#!/bin/bash
#nvm install v14
rm -rf ./src/
cp -rf ./../frontend/src/ ./src/
chmod 777 -R ./src/
mv src/index.aero.html src/index.html
#./src/aero/aero.module.ts
sed -i 's/import { AngularFireMessagingModule }/\/\/import { AngularFireMessagingModule }/g' ./src/aero/aero.module.ts
sed -i 's/import { AngularFireDatabaseModule }/\/\/import { AngularFireDatabaseModule }/g' ./src/aero/aero.module.ts
sed -i 's/import { AngularFireAuthModule }/\/\/import { AngularFireAuthModule }/g' ./src/aero/aero.module.ts
sed -i 's/import { AngularFireModule }/\/\/import { AngularFireModule }/g' ./src/aero/aero.module.ts
sed -i 's/import { MessagingService }/\/\/import { MessagingService }/g' ./src/aero/aero.module.ts
sed -i 's/AngularFireMessagingModule,/\/\/AngularFireMessagingModule,/g' ./src/aero/aero.module.ts
sed -i 's/AngularFireDatabaseModule,/\/\/AngularFireDatabaseModule,/g' ./src/aero/aero.module.ts
sed -i 's/AngularFireAuthModule,/\/\/AngularFireAuthModule,/g' ./src/aero/aero.module.ts
sed -i 's/AngularFireModule./\/\/AngularFireModule./g' ./src/aero/aero.module.ts
sed -i 's/MessagingService,/\/\/MessagingService,/g' ./src/aero/aero.module.ts
#./src/aero/pages/helpers/messaging.service.ts
sed -i 's/import { Injectable }/\/*import { Injectable }/g' ./src/aero/pages/helpers/messaging.service.ts
echo '*/' >> ./src/aero/pages/helpers/messaging.service.ts
#./src/aero/aero.component.ts
sed -i 's/import { MessagingService }/\/\/import { MessagingService }/g' ./src/aero/aero.component.ts
sed -i 's/this.messagingService/\/\/this.messagingService/g' ./src/aero/aero.component.ts
sed -i 's/private messagingService: MessagingService/\/\/private messagingService: MessagingService/g' ./src/aero/aero.component.ts
ionic build
#./www/styles.css
cat ./www/styles.css ./../frontend/src/styles.css > ./www/temp.css
rm ./www/styles.css
mv ./www/temp.css ./www/styles.css
#./www/index.html
rm ./www/index.html
cp ./index.utf8.html ./www/index.html
npx cap sync android