-
Notifications
You must be signed in to change notification settings - Fork 0
/
make.sh
executable file
·31 lines (22 loc) · 1.04 KB
/
make.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
#!/bin/bash
pushd bin/keepEngine;
cargo build --target x86_64-unknown-linux-musl --release || exit $?;
popd;
cp bin/keepEngine/target/x86_64-unknown-linux-musl/release/keepEngine res/lapas/guest/lapas/keepEngine || exit $?;
chmod +x res/lapas/guest/lapas/keepEngine;
pushd bin/lapas_api_server;
cargo build --target x86_64-unknown-linux-musl --release || exit $?;
popd;
cp bin/lapas_api_server/target/x86_64-unknown-linux-musl/release/lapas-api-server res/lapas/scripts/lapas-api-server || exit $?;
chmod +x res/lapas/scripts/lapas-api-server;
pushd bin/lapas_api_client;
cargo build --target x86_64-unknown-linux-musl --release || exit $?;
popd;
cp bin/lapas_api_client/target/x86_64-unknown-linux-musl/release/lapas-api-client res/lapas/guest/lapas/lapas-api-client || exit $?;
chmod a+x res/lapas/guest/lapas/lapas-api-client;
pushd bin/lapas_nss;
cargo build --release || exit $?;
popd;
cp bin/lapas_nss/target/release/libnss_lapas.so res/lapas/guest/libnss_lapas.so.2 || exit $?;
# package installer script
python3 ./make.py > ./lapas_installer.sh