-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild_u8_monolith.sh
executable file
·21 lines (17 loc) · 1.12 KB
/
build_u8_monolith.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
export CC=/usr/bin/clang-8
export CXX=/usr/bin/clang++-8
cmake -DCMAKE_BUILD_TYPE=Release -G "CodeBlocks - Unix Makefiles" -B./cmake-build-monolith-release .
#cmake --build ./cmake-build-monolith-release/ --target clean -- -j
cmake --build ./cmake-build-monolith-release --target all -- -j
rm -f ./cmake-build-monolith-release/u8core.u8m
zip -r ./cmake-build-monolith-release/u8core.u8m ./jslib ./u8scripts/examples ./manifest.yaml
scp kubot@sergeych.net:u8.ukeys/ModuleKey.private.unikey /tmp/
./cmake-build-monolith-release/u8 --signmodule ./cmake-build-monolith-release/u8core.u8m /tmp/ModuleKey.private.unikey
shred -zvu /tmp/ModuleKey.private.unikey
xxd -i ./cmake-build-monolith-release/u8core.u8m ./u8core.u8m.c
sed -i 's/__cmake_build_monolith_release_u8core_u8m/u8core_u8m/g' ./u8core.u8m.c
cmake -DCMAKE_BUILD_TYPE=Release -G "CodeBlocks - Unix Makefiles" -B./cmake-build-monolith-release . -DU8_BUILD_MONOLITH=True
cmake --build ./cmake-build-monolith-release/ --target clean -- -j
cmake --build ./cmake-build-monolith-release --target all -- -j
upx -9 ./cmake-build-monolith-release/u8
upx -1 ./cmake-build-monolith-release/u8_tests