Skip to content

Commit dbc609b

Browse files
committed
- flatpak off
1 parent 6417ae9 commit dbc609b

2 files changed

Lines changed: 0 additions & 33 deletions

File tree

.appveyor/Build.sh

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -11,26 +11,3 @@ for config in debug_x64 release_x64 release_dev_x64
1111
do
1212
make config=$config -j$(nproc)
1313
done
14-
15-
cd ${APPVEYOR_BUILD_FOLDER}
16-
17-
# Creating flatpak directories
18-
mkdir -p "${APPVEYOR_BUILD_FOLDER}/.flatpak/lib" "${APPVEYOR_BUILD_FOLDER}/.flatpak/data" "${APPVEYOR_BUILD_FOLDER}/.flatpak/bin"
19-
find ${APPVEYOR_BUILD_FOLDER}/src_rebuild/bin/Release -name 'REDRIVER2*' -exec cp -t ${APPVEYOR_BUILD_FOLDER}/.flatpak/bin {} +
20-
21-
# Copy missing libraries in the runtime
22-
for lib in libjpeg libopenal
23-
do
24-
cp -Lf $(ldd "${APPVEYOR_BUILD_FOLDER}/src_rebuild/bin/Release/REDRIVER2" | awk '/ => / { print $3 }' | grep ${lib}) "${APPVEYOR_BUILD_FOLDER}/.flatpak/lib"
25-
done
26-
27-
cp -r "${APPVEYOR_BUILD_FOLDER}/data" "${APPVEYOR_BUILD_FOLDER}/.flatpak/"
28-
29-
# Editing metadatas with the current version
30-
export APPVEYOR_BUILD_DATE=$(date "+%Y-%m-%d")
31-
sed -i -e "s/V_VERSION/$APPVEYOR_BUILD_VERSION/g" -e "s/V_DATE/$APPVEYOR_BUILD_DATE/g" .flatpak/io.github.opendriver2.Redriver2.appdata.xml
32-
33-
# Build the flatpak
34-
flatpak-builder --user --install build io.github.opendriver.redriver2.yaml --force-clean --arch=x86_64
35-
flatpak build-bundle ~/.local/share/flatpak/repo io.github.opendriver2.Redriver2.flatpak io.github.opendriver2.Redriver2
36-
rm -rf build/ .flatpak-builder/

.appveyor/Install.sh

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,4 @@ sudo aptitude install --quiet=2 \
1919
libjpeg-turbo8-dev \
2020
flatpak flatpak-builder -y
2121

22-
# Setting XDG_DATA_DIRS environement variable for flatpak
23-
export XDG_DATA_DIRS="/var/lib/flatpak/exports/share:${HOME}/.local/share/flatpak/exports/share:$XDG_DATA_DIRS"
2422

25-
# Adding the flathub repo
26-
flatpak --user remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
27-
28-
# Adding Platform/SDK for the Linux flatpak release
29-
flatpak --user install flathub org.freedesktop.Platform/x86_64/22.08 -y
30-
flatpak --user install flathub org.freedesktop.Sdk/x86_64/22.08 -y
31-
flatpak --user install flathub org.freedesktop.Sdk.Compat.i386/x86_64/22.08 -y
32-
flatpak --user install flathub org.freedesktop.Sdk.Extension.toolchain-i386/x86_64/22.08 -y

0 commit comments

Comments
 (0)