@@ -24,23 +24,18 @@ script_aborted() {
24
24
set -o pipefail
25
25
26
26
rm -rf ./libs
27
-
27
+ mkdir -p ./libs/mORMot/static
28
28
# echo "Getting the latest pre-release URL..."
29
29
# USED_TAG=$(wget -qO- https://api.github.com/repos/synopse/mORMot2/releases/latest | jq -r '.tag_name')
30
- USED_TAG=" 2.0.4383 "
30
+ USED_TAG=" 2.0.stable "
31
31
32
32
echo " Used release tag $USED_TAG "
33
- URL=" https://github.com/synopse/mORMot2/releases/download/$USED_TAG /mormot2static.7z "
33
+ URL=" https://github.com/synopse/mORMot2/releases/download/$USED_TAG /mormot2static.tgz "
34
34
echo " Download statics from $URL ..."
35
- wget -q -O./mormot2static.7z " $URL "
36
-
37
- mkdir -p ./libs/mORMot/static
38
- echo " Unpacking to ./libs/mORMot/static ..."
39
- 7za x ./mormot2static.7z -o./libs/mORMot/static
40
- rm -rf ./mormot2static.7z
35
+ wget -qO- " $URL " | tar -xz -C ./libs/mORMot/static
41
36
42
37
# uncomment for fixed commit URL
43
- URL=https://github.com/synopse/mORMot2/tarball/0eb1a70da04481a6d478acff5183742eed1882f7
38
+ URL=https://github.com/synopse/mORMot2/tarball/46f5360a668ccf7a7c4d538fb319b449da8a232f
44
39
# URL="https://api.github.com/repos/synopse/mORMot2/tarball/$USED_TAG"
45
40
echo " Download and unpacking mORMot sources from $URL ..."
46
41
wget -qO- " $URL " | tar -xz -C ./libs/mORMot --strip-components=1
72
67
# Warning: (5089) Local variable XXX of a managed type does not seem to be initialized
73
68
# Warning: (5090) Variable XXX of a managed type does not seem to be initialized
74
69
SUPRESS_WARN=-vm11047,6058,5092,5091,5060,5058,5057,5028,5024,5023,4081,4079,4055,3187,3124,3123,5059,5036,5089,5090
75
-
76
70
echo " Start compiling..."
77
71
fpc -MDelphi -Sci -Ci -O4 -g -gl -gw2 -Xg -k' -rpath=$ORIGIN' -k-L$BIN \
78
72
-T$TARGET -P$ARCH \
@@ -82,7 +76,7 @@ fpc -MDelphi -Sci -Ci -O4 -g -gl -gw2 -Xg -k'-rpath=$ORIGIN' -k-L$BIN \
82
76
-Fu" $MSRC /core" -Fu" $MSRC /db" -Fu" $MSRC /rest" -Fu" $MSRC /crypt" \
83
77
-Fu" $MSRC /app" -Fu" $MSRC /net" -Fu" $MSRC /lib" -Fu" $MSRC /orm" -Fu" $MSRC /soa" \
84
78
-FU" $BIN /fpc-$ARCH_TG /.dcu" -FE" $BIN /fpc-$ARCH_TG " -o" $BIN /fpc-$ARCH_TG /$dest_fn " \
85
- -dFPC_LIBCMM -dNOSYNDBZEOS -dNOSYNDBIBX \
79
+ -dFPC_LIBCMM \
86
80
-B -Se1 " ./src/raw.pas" | grep " [Warning|Error|Fatal]:"
87
81
88
82
script_successful
0 commit comments