Skip to content

Commit 7f23b14

Browse files
committed
Improve Linux build script
1 parent 30b7509 commit 7f23b14

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

build.sh

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
1-
#!/bin/sh
1+
#!/bin/bash
2+
set -ex
23

34
rm -rf dist
45

5-
cd bootstrap
66
pnpm build
7-
cd ../server
8-
pnpm build
9-
cd ../frontend
10-
pnpm build
11-
cd ..
127

138
cp -r bootstrap/dist .
149
cp bootstrap/scripts/linux/* dist
@@ -25,7 +20,8 @@ cp package.json dist
2520

2621
cd dist
2722
mkdir alfc
28-
mv * ./alfc
23+
shopt -s extglob
24+
mv !(alfc) ./alfc
2925
tar -czf alfc.tar.gz alfc
3026

3127
cd ..

0 commit comments

Comments
 (0)