forked from pact-foundation/pact-ruby-standalone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package-with-ocra.sh
executable file
·98 lines (89 loc) · 3.51 KB
/
package-with-ocra.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
#!/bin/bash -e
set -e
gem install ocran
mkdir -p pkg
cd packaging
unset GEM_HOME
bundle install
ocran pact-broker-app.rb pact-broker-app.bat config.ru config \
--verbose \
--output pact-broker-app.exe \
--gem-all \
--add-all-core \
--dll ruby_builtin_dlls/zlib1.dll \
--dll ruby_builtin_dlls/libgmp-10.dll \
--dll ruby_builtin_dlls/libyaml-0-2.dll \
--dll ruby_builtin_dlls/libssl-3-x64.dll \
--dll ruby_builtin_dlls/libcrypto-3-x64.dll \
--no-dep-run \
--gemfile Gemfile \
--debug-extract \
--gem-full \
--chdir-first
# pact-broker-app.exe >& nohup.out &
# echo $! > $HOME/pid.nohup
# cat $HOME/pid.nohup
# kill `cat $HOME/pid.nohup`
ls
# ls ocr*.tmp pact-broker-app
# mv pact-broker-app/src/pact-broker-app.bat pact-broker-app/pact-broker-app.bat
# zip -9rq pact-broker-app.zip pact-broker-app
gzip -c pact-broker-app.exe > ../pkg/pact-broker-app.exe.gz
# aibika pact-broker.rb ca-bundle.crt --verbose --output pact-broker-cli.exe \
# --gem-all \
# --add-all-core \
# --dll ruby_builtin_dlls/zlib1.dll \
# --dll ruby_builtin_dlls/libgmp-10.dll \
# --dll ruby_builtin_dlls/libyaml-0-2.dll \
# --dll ruby_builtin_dlls/libssl-3-x64.dll \
# --dll ruby_builtin_dlls/libcrypto-3-x64.dll
# gzip -c pact-broker-cli.exe > ../pkg/pact-broker-cli.exe.gz
# aibika pact.rb ca-bundle.crt --verbose --output pact-cli.exe \
# --gem-all \
# --add-all-core \
# --dll ruby_builtin_dlls/zlib1.dll \
# --dll ruby_builtin_dlls/libgmp-10.dll \
# --dll ruby_builtin_dlls/libyaml-0-2.dll \
# --dll ruby_builtin_dlls/libssl-3-x64.dll \
# --dll ruby_builtin_dlls/libcrypto-3-x64.dll
# gzip -c pact-cli.exe > ../pkg/pact-cli.exe.gz
# aibika pact-message.rb ca-bundle.crt --verbose --output pact-message.exe \
# --gem-all \
# --add-all-core \
# --dll ruby_builtin_dlls/zlib1.dll \
# --dll ruby_builtin_dlls/libgmp-10.dll \
# --dll ruby_builtin_dlls/libyaml-0-2.dll \
# --dll ruby_builtin_dlls/libssl-3-x64.dll \
# --dll ruby_builtin_dlls/libcrypto-3-x64.dll
# gzip -c pact-message.exe > ../pkg/pact-message.exe.gz
# aibika pact-mock-service.rb ca-bundle.crt --verbose --output pact-mock-service.exe \
# --gem-all \
# --add-all-core \
# --dll ruby_builtin_dlls/zlib1.dll \
# --dll ruby_builtin_dlls/libgmp-10.dll \
# --dll ruby_builtin_dlls/libyaml-0-2.dll \
# --dll ruby_builtin_dlls/libssl-3-x64.dll \
# --dll ruby_builtin_dlls/libcrypto-3-x64.dll
# gzip -c pact-mock-service.exe > ../pkg/pact-mock-service.exe.gz
# aibika pact-provider-verifier.rb ca-bundle.crt --verbose --output pact-provider-verifier.exe \
# --gem-all \
# --add-all-core \
# --dll ruby_builtin_dlls/zlib1.dll \
# --dll ruby_builtin_dlls/libgmp-10.dll \
# --dll ruby_builtin_dlls/libyaml-0-2.dll \
# --dll ruby_builtin_dlls/libssl-3-x64.dll \
# --dll ruby_builtin_dlls/libcrypto-3-x64.dll
# gzip -c pact-provider-verifier.exe > ../pkg/pact-provider-verifier.exe.gz
# aibika pact-stub-service.rb ca-bundle.crt --verbose --output pact-stub-service.exe \
# --gem-all \
# --add-all-core \
# --dll ruby_builtin_dlls/zlib1.dll \
# --dll ruby_builtin_dlls/libgmp-10.dll \
# --dll ruby_builtin_dlls/libyaml-0-2.dll \
# --dll ruby_builtin_dlls/libssl-3-x64.dll \
# --dll ruby_builtin_dlls/libcrypto-3-x64.dll
# gzip -c pact-stub-service.exe > ../pkg/pact-stub-service.exe.gz
#
cd ..
pushd pkg; for file in *.gz; do openssl dgst -sha256 -r "$file" > "${file}.sha256"; done; popd;
cat pkg/*.sha256 > pkg/pact-`cat VERSION`.sha256