Debian Codegraph @

build/msys2/deploy.sh

raw
1 #!/bin/sh
2 echo call parameters: \"SOURCE_DIR BUILD_DIR\"
3 echo SELF: \"${0}\"
4 echo SOURCE_DIR: \"${1}\"
5 echo BUILD_DIR: \"${2}\"
6
7 . ${1}/main/include/meta/meta_version.inl
8 VERSIONSTR=${META_VERSION_STR}
9 echo version: ${VERSIONSTR}
10
11 # create a deployment directory
12 mkdir -p crystal-facet-uml
13 cp ${1}/installation/crystal-facet-uml_documentation.pdf crystal-facet-uml/
14 cp ${1}/installation/win/* crystal-facet-uml/
15 cp ${1}/documentation/examples/mouse_droid.cfuJ crystal-facet-uml/crystal-facet-uml_mod5g-example.cfuJ
16 cp ${1}/LICENSE.txt crystal-facet-uml/crystal-facet-uml_LICENSE.txt
17 ${1}/build/msys2/fetch_licenses.sh | tee crystal-facet-uml/LICENSES_of_3rd_party.txt
18
19 mkdir -p crystal-facet-uml/bin
20 cp crystal-facet-uml.exe crystal-facet-uml/bin/
21 cp test_crystal-facet-uml.exe crystal-facet-uml/bin/
22 ldd crystal-facet-uml.exe | grep -e ' /ucrt64' | sed -e 's/^[^/]*\(\S*\).*$/\1/' | xargs cp -t crystal-facet-uml/bin/
23 cp /ucrt64/bin/gdbus.exe crystal-facet-uml/bin/
24
25 mkdir -p crystal-facet-uml/share/glib-2.0/schemas
26 cp /ucrt64/share/glib-2.0/schemas/gschemas.compiled crystal-facet-uml/share/glib-2.0/schemas/
27
28 # zip
29 7z a crystal-facet-uml_${VERSIONSTR}-1_win64.zip crystal-facet-uml
30
31
32 # Copyright 2025-2026 Andreas Warnke
33 #
34 # Licensed under the Apache License, Version 2.0 (the "License");
35 # you may not use this file except in compliance with the License.
36 # You may obtain a copy of the License at
37 #
38 # http://www.apache.org/licenses/LICENSE-2.0
39 #
40 # Unless required by applicable law or agreed to in writing, software
41 # distributed under the License is distributed on an "AS IS" BASIS,
42 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
43 # See the License for the specific language governing permissions and
44 # limitations under the License.