9
9
if [[ $# > 0 ]]; then
10
10
TAG=$1
11
11
else
12
- echo " Usage: fastrtps_build_xctframework.sh TAG"
12
+ echo " Usage: fastrtps_build_xctframework.sh TAG commit "
13
13
echo " where TAG is FasT-DDS version tag eg. 2.0.1"
14
14
exit -1
15
15
fi
16
16
17
17
BRANCH=$( git branch --show-current)
18
18
if [ " $BRANCH " == " master" ]
19
19
then
20
- Foonathan_memory_repo=" -b crosscompile https://github.com/DimaRU/memory.git"
21
20
FastRTPS_repo=" -b v$TAG https://github.com/eProsima/Fast-DDS.git"
22
21
ReleaseNote=" Fast-DDS $TAG : iOS(armv7, armv7s, arm64), iOS Simulator(x86_64, arm64), macOS(x86_64, arm64), maccatalyst (x86_64, arm64)."
23
22
elif [ " $BRANCH " == " whitelist" ]
24
23
then
25
- Foonathan_memory_repo=" -b crosscompile https://github.com/DimaRU/memory.git"
26
24
FastRTPS_repo=" -b feature/remote-whitelist-$TAG https://github.com/DimaRU/Fast-DDS.git"
27
25
ReleaseNote=" Fast-DDS $TAG : iOS(armv7, armv7s, arm64), iOS Simulator(x86_64, arm64), macOS(x86_64, arm64), maccatalyst (x86_64, arm64). Remote whitelist feature."
28
26
TAG=" $TAG -$BRANCH "
@@ -44,7 +42,10 @@ export PROJECT_TEMP_DIR=$BUILD/temp
44
42
export SOURCE_DIR=$BUILD /src
45
43
46
44
if [ ! -d $SOURCE_DIR /memory ]; then
47
- git clone --quiet --recurse-submodules --depth 1 $Foonathan_memory_repo $SOURCE_DIR /memory
45
+ git clone --quiet https://github.com/foonathan/memory.git $SOURCE_DIR /memory
46
+ pushd $SOURCE_DIR /memory > /dev/null
47
+ git checkout 7851d12
48
+ popd > /dev/null
48
49
fi
49
50
if [ ! -d $SOURCE_DIR /Fast-DDS ]; then
50
51
git clone --quiet --recurse-submodules --depth 1 $FastRTPS_repo $SOURCE_DIR /Fast-DDS
@@ -94,14 +95,14 @@ let package = Package(
94
95
)
95
96
EOL
96
97
97
- if [[ $# == 1 ]]; then
98
+ if [[ $2 == " commit " ]]; then
98
99
99
100
git add Package.swift
100
101
git commit -m " Build $TAG "
101
102
git tag $TAG
102
103
git push
103
104
git push --tags
104
- gh release create " $TAG " fastrtps- $TAG .xcframework.zip --title " $TAG " --notes " $ReleaseNote "
105
+ gh release create " $TAG " $ZIPNAME --title " $TAG " --notes " $ReleaseNote "
105
106
106
107
fi
107
108
popd > /dev/null
0 commit comments