mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
iOS: adjust GitHub Action to new build format
It's frustrating that I can't get the translation.qrc support the translation files to be created in the build directory. Having them as part of the sources just feels wrong. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
695950b15a
commit
198096e30e
2 changed files with 6 additions and 9 deletions
11
.github/workflows/ios.yml
vendored
11
.github/workflows/ios.yml
vendored
|
@ -25,11 +25,8 @@ jobs:
|
|||
xzcat Qt-5.14.1-ios.tar.xz | tar -x -C $HOME/Qt -f -
|
||||
- name: build Subsurface-mobile for iOS
|
||||
run: |
|
||||
cd packaging/ios
|
||||
mkdir -p $HOME/build
|
||||
cd $HOME/build
|
||||
ln -s $HOME/Qt Qt
|
||||
echo "build dependencies"
|
||||
bash -x build.sh -simulator
|
||||
echo "Subsurface-mobile for iOS"
|
||||
cd build-Subsurface-mobile-*for_iOS-Release
|
||||
sed -i.bak 's/-Wall/-Wno-everything/' Makefile # make the build far less verbose
|
||||
make -j2
|
||||
echo "build for simulator"
|
||||
bash -x $GITHUB_WORKSPACE/packaging/ios/build.sh -simulator
|
||||
|
|
|
@ -275,9 +275,9 @@ fi
|
|||
pushd "$SUBSURFACE_SOURCE"/translations
|
||||
SRCS=$(ls ./*.ts | grep -v source)
|
||||
popd
|
||||
mkdir -p build-ios/translations
|
||||
mkdir -p "$SUBSURFACE_SOURCE"/packaging/ios/build-ios/translations
|
||||
for src in $SRCS; do
|
||||
"$IOS_QT"/"$QT_VERSION"/ios/bin/lrelease "$SUBSURFACE_SOURCE"/translations/"$src" -qm build-ios/translations/"${src/.ts/.qm}"
|
||||
"$IOS_QT"/"$QT_VERSION"/ios/bin/lrelease "$SUBSURFACE_SOURCE"/translations/"$src" -qm "$SUBSURFACE_SOURCE"/packaging/ios/build-ios/translations/"${src/.ts/.qm}"
|
||||
done
|
||||
|
||||
# in order to be able to use xcode without going through Qt Creator
|
||||
|
|
Loading…
Reference in a new issue