Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3c8b783710 |
+5
-5
@@ -1,11 +1,11 @@
|
|||||||
[submodule "simgear"]
|
[submodule "simgear"]
|
||||||
path = simgear
|
path = simgear
|
||||||
url = ../simgear
|
url = ../simgear
|
||||||
branch = release/2020.3
|
branch = next
|
||||||
[submodule "flightgear"]
|
[submodule "flightgear"]
|
||||||
path = flightgear
|
path = flightgear
|
||||||
url = ../flightgear
|
url = ../flightgear
|
||||||
branch = release/2020.3
|
branch = next
|
||||||
[submodule "fgrun"]
|
[submodule "fgrun"]
|
||||||
path = fgrun
|
path = fgrun
|
||||||
url = ../fgrun
|
url = ../fgrun
|
||||||
@@ -13,12 +13,12 @@
|
|||||||
[submodule "fgdata"]
|
[submodule "fgdata"]
|
||||||
path = fgdata
|
path = fgdata
|
||||||
url = ../fgdata
|
url = ../fgdata
|
||||||
branch = release/2020.3
|
branch = next
|
||||||
[submodule "windows-3rd-party"]
|
[submodule "windows-3rd-party"]
|
||||||
path = windows-3rd-party
|
path = windows-3rd-party
|
||||||
url = ../windows-3rd-party
|
url = ../windows-3rd-party
|
||||||
branch = release/2020.3
|
branch = master
|
||||||
[submodule "getstart"]
|
[submodule "getstart"]
|
||||||
path = getstart
|
path = getstart
|
||||||
url = ../getstart
|
url = ../getstart
|
||||||
branch = release/2020.3
|
branch = next
|
||||||
|
|||||||
@@ -1,84 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
#
|
|
||||||
# This program is free software: you can redistribute it and/or modify
|
|
||||||
# it under the terms of the GNU General Public License as published by
|
|
||||||
# the Free Software Foundation, either version 3 of the License, or
|
|
||||||
# (at your option) any later version.
|
|
||||||
#
|
|
||||||
# This program is distributed in the hope that it will be useful,
|
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
# GNU General Public License for more details.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU General Public License
|
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
#
|
|
||||||
# builds Appimage on Centos 7 using linuxdeployqt from continuous build
|
|
||||||
# expects to work in $WORKSPACE, uses the contents of dist/{bin,share,lib64} copied into an appdir
|
|
||||||
# missing qt plugins are copied in manually, as are osgPlugins
|
|
||||||
# libcurl in SIMGEAR needs a setting to find the tls certificate, and OSG needs LD_LIBRARY_PATH so it can find osgPlugins
|
|
||||||
# currently not including FGDATA, but this could be done easily once FG is updated to change Nav database checks from path to some kind of checksum
|
|
||||||
#
|
|
||||||
# issues/errors:
|
|
||||||
# can't find qt translations - missing something in my build?
|
|
||||||
#
|
|
||||||
# errors/comments to enrogue@gmail.com
|
|
||||||
|
|
||||||
#clean up any previous build
|
|
||||||
|
|
||||||
rm -rf appdir
|
|
||||||
|
|
||||||
#create basic structure
|
|
||||||
|
|
||||||
mkdir -p appdir/usr/bin
|
|
||||||
mkdir -p appdir/usr/lib
|
|
||||||
mkdir -p appdir/usr/share
|
|
||||||
mkdir -p appdir/usr/qml
|
|
||||||
mkdir -p appdir/usr/ssl
|
|
||||||
|
|
||||||
#copy everything we need in
|
|
||||||
|
|
||||||
cp dist/bin/* appdir/usr/bin
|
|
||||||
|
|
||||||
cp -a dist/lib64/* appdir/usr/lib
|
|
||||||
|
|
||||||
# remove SimGearCore,Scene and any other static libs which leaked
|
|
||||||
rm appdir/usr/lib/lib*.a
|
|
||||||
|
|
||||||
cp -a dist/lib64/osgPlugins-3.4.2 appdir/usr/lib
|
|
||||||
|
|
||||||
cp -r dist/share appdir/usr
|
|
||||||
|
|
||||||
cp -a /usr/lib64/qt5/qml/QtQuick.2 appdir/usr/qml
|
|
||||||
|
|
||||||
cp /usr/lib64/libsoftokn3.* appdir/usr/lib
|
|
||||||
cp /usr/lib64/libnsspem.so appdir/usr/lib
|
|
||||||
cp /etc/pki/tls/certs/ca-bundle.crt appdir/usr/ssl/cacert.pem
|
|
||||||
|
|
||||||
#modify the desktop file so that linuxdeployqt doesn't barf (version to 1.0, add semicolon to end of certain line types)
|
|
||||||
sed -i 's/^Categor.*/&;/ ; s/^Keyword.*/&;/ ; s/1\.1/1\.0/' appdir/usr/share/applications/org.flightgear.FlightGear.desktop
|
|
||||||
|
|
||||||
#generate AppRun script
|
|
||||||
|
|
||||||
cat << 'EOF' > appdir/AppRun
|
|
||||||
#!/bin/bash
|
|
||||||
HERE="$(dirname "$(readlink -f "${0}")")"
|
|
||||||
export SIMGEAR_TLS_CERT_PATH=$HERE/usr/ssl/cacert.pem
|
|
||||||
echo SIMGEAR_TLS_CERT_PATH=$SIMGEAR_TLS_CERT_PATH
|
|
||||||
export LD_LIBRARY_PATH=${HERE}/usr/lib:${LD_LIBRARY_PATH}
|
|
||||||
export OSG_LIBARARY_PATH=${HERE}/usr/lib
|
|
||||||
echo LD_LIBRARY_PATH=$LD_LIBRARY_PATH
|
|
||||||
exec "${HERE}/usr/bin/fgfs" "$@"
|
|
||||||
EOF
|
|
||||||
|
|
||||||
|
|
||||||
chmod +x appdir/AppRun
|
|
||||||
|
|
||||||
#grab continuous linuxdeployqt
|
|
||||||
wget -c https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage
|
|
||||||
chmod +x linuxdeployqt-continuous-x86_64.AppImage
|
|
||||||
|
|
||||||
#set VERSION for AppImage creation
|
|
||||||
export VERSION=`cat flightgear/flightgear-version`
|
|
||||||
|
|
||||||
./linuxdeployqt-continuous-x86_64.AppImage appdir/usr/share/applications/org.flightgear.FlightGear.desktop -appimage
|
|
||||||
+9
-36
@@ -5,9 +5,7 @@ if [ "$WORKSPACE" == "" ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cmakeGenerator=Ninja
|
VERSION=`cat flightgear/version`
|
||||||
cmakeCommonArgs="-DCMAKE_INSTALL_PREFIX:PATH=$WORKSPACE/dist -DCMAKE_BUILD_TYPE=RelWithDebInfo"
|
|
||||||
VERSION=`cat flightgear/flightgear-version`
|
|
||||||
|
|
||||||
#####################################################################################
|
#####################################################################################
|
||||||
# ensure fgrcc can run when linked against libSimGearCore, for example
|
# ensure fgrcc can run when linked against libSimGearCore, for example
|
||||||
@@ -24,68 +22,43 @@ rm -rf output/*
|
|||||||
#####################################################################################
|
#####################################################################################
|
||||||
echo "Starting on SimGear"
|
echo "Starting on SimGear"
|
||||||
cd sgBuild
|
cd sgBuild
|
||||||
cmake -G $cmakeGenerator $cmakeCommonArgs ../simgear
|
cmake -DCMAKE_INSTALL_PREFIX:PATH=$WORKSPACE/dist -DENABLE_DNS:BOOL="ON" -DSIMGEAR_SHARED:BOOL="ON" ../simgear
|
||||||
|
|
||||||
# compile
|
# compile
|
||||||
ninja
|
make
|
||||||
|
|
||||||
if [ $? -ne '0' ]; then
|
if [ $? -ne '0' ]; then
|
||||||
echo "make simgear failed"
|
echo "make simgear failed"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ninja install
|
make install
|
||||||
|
|
||||||
# build source package and copy to output
|
# build source package and copy to output
|
||||||
ninja package_source
|
make package_source
|
||||||
cp simgear-*.tar.bz2 ../output/.
|
cp simgear-*.tar.bz2 ../output/.
|
||||||
|
|
||||||
#####################################################################################
|
#####################################################################################
|
||||||
echo "Starting on FlightGear"
|
echo "Starting on FlightGear"
|
||||||
cd ../fgBuild
|
cd ../fgBuild
|
||||||
cmake -G $cmakeGenerator $cmakeCommonArgs -DENABLE_SWIFT:BOOL=ON -DFG_BUILD_TYPE=Release ../flightgear
|
cmake -DCMAKE_INSTALL_PREFIX:PATH=$WORKSPACE/dist -DSIMGEAR_SHARED:BOOL="ON" -DENABLE_SWIFT:BOOL=ON -DFG_BUILD_TYPE=Release ../flightgear
|
||||||
|
|
||||||
# compile
|
# compile
|
||||||
ninja
|
make
|
||||||
|
|
||||||
if [ $? -ne '0' ]; then
|
if [ $? -ne '0' ]; then
|
||||||
echo "make flightgear failed"
|
echo "make flightgear failed"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ninja install
|
make install
|
||||||
|
|
||||||
# build source package and copy to output
|
# build source package and copy to output
|
||||||
ninja package_source
|
make package_source
|
||||||
cp flightgear-*.tar.bz2 ../output/.
|
cp flightgear-*.tar.bz2 ../output/.
|
||||||
|
|
||||||
#####################################################################################
|
#####################################################################################
|
||||||
|
|
||||||
if which sentry-cli >/dev/null; then
|
|
||||||
echo "Uploading symbols"
|
|
||||||
|
|
||||||
export SENTRY_ORG=flightgear
|
|
||||||
export SENTRY_PROJECT=flightgear
|
|
||||||
|
|
||||||
# set in the Jenkins environment for the builder
|
|
||||||
# export SENTRY_AUTH_TOKEN=YOUR_AUTH_TOKEN
|
|
||||||
|
|
||||||
ERROR=$(sentry-cli upload-dif --include-sources "$WORKSPACE/dist/bin/fgfs" 2>&1 >/dev/null)
|
|
||||||
if [ ! $? -eq 0 ]; then
|
|
||||||
echo "warning: sentry-cli - $ERROR"
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
echo "warning: sentry-cli not installed, download from https://github.com/getsentry/sentry-cli/releases"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# now we uploaded symnbols, strip the binaries
|
|
||||||
|
|
||||||
strip --strip-debug $WORKSPACE/dist/bin/fgfs
|
|
||||||
strip --strip-debug $WORKSPACE/dist/bin/fgviewer
|
|
||||||
strip --strip-debug $WORKSPACE/dist/bin/fgjs
|
|
||||||
|
|
||||||
#####################################################################################
|
|
||||||
|
|
||||||
echo "Assembling base package"
|
echo "Assembling base package"
|
||||||
cd $WORKSPACE
|
cd $WORKSPACE
|
||||||
|
|
||||||
|
|||||||
@@ -118,10 +118,10 @@ SET SENTRY_ORG=flightgear
|
|||||||
SET SENTRY_PROJECT=flightgear
|
SET SENTRY_PROJECT=flightgear
|
||||||
REM ensure SENTRY_AUTH_TOKEN is set in the environment
|
REM ensure SENTRY_AUTH_TOKEN is set in the environment
|
||||||
|
|
||||||
sentry-cli upload-dif --include-sources %WORKSPACE%\build-fg32\%FGFS_PDB%
|
sentry-cli upload-dif %WORKSPACE%\build-fg32\%FGFS_PDB%
|
||||||
sentry-cli upload-dif --include-sources %WORKSPACE%\build-fg64\%FGFS_PDB%
|
sentry-cli upload-dif %WORKSPACE%\build-fg64\%FGFS_PDB%
|
||||||
sentry-cli upload-dif --include-sources %WORKSPACE%\build-fg32-compositor\%FGFS_PDB%
|
sentry-cli upload-dif %WORKSPACE%\build-fg32-compositor\%FGFS_PDB%
|
||||||
sentry-cli upload-dif --include-sources %WORKSPACE%\build-fg64-compositor\%FGFS_PDB%
|
sentry-cli upload-dif %WORKSPACE%\build-fg64-compositor\%FGFS_PDB%
|
||||||
|
|
||||||
REM indirect way to get command output into an environment variable
|
REM indirect way to get command output into an environment variable
|
||||||
set PATH=%OSG32%\bin;%PATH%
|
set PATH=%OSG32%\bin;%PATH%
|
||||||
@@ -129,7 +129,7 @@ osgversion --so-number > %TEMP%\osg-so-number.txt
|
|||||||
osgversion --version-number > %TEMP%\osg-version.txt
|
osgversion --version-number > %TEMP%\osg-version.txt
|
||||||
osgversion --openthreads-soversion-number > %TEMP%\openthreads-so-number.txt
|
osgversion --openthreads-soversion-number > %TEMP%\openthreads-so-number.txt
|
||||||
|
|
||||||
SET /P FLIGHTGEAR_VERSION=<flightgear\flightgear-version
|
SET /P FLIGHTGEAR_VERSION=<flightgear\version
|
||||||
SET /P OSG_VERSION=<%TEMP%\osg-version.txt
|
SET /P OSG_VERSION=<%TEMP%\osg-version.txt
|
||||||
SET /P OSG_SO_NUMBER=<%TEMP%\osg-so-number.txt
|
SET /P OSG_SO_NUMBER=<%TEMP%\osg-so-number.txt
|
||||||
SET /P OT_SO_NUMBER=<%TEMP%\openthreads-so-number.txt
|
SET /P OT_SO_NUMBER=<%TEMP%\openthreads-so-number.txt
|
||||||
|
|||||||
+1
-1
Submodule fgdata updated: ae1a2b153f...7d78937a4c
+1
-1
Submodule flightgear updated: 19ec87287f...61808019a0
+1
-1
Submodule getstart updated: 85fbc39a40...4313401e95
@@ -22,7 +22,7 @@ echo "Build path is: $PATH"
|
|||||||
# to be necessary all the same
|
# to be necessary all the same
|
||||||
#export PKG_CONFIG_PATH=$WORKSPACE/dist/lib/pkgconfig
|
#export PKG_CONFIG_PATH=$WORKSPACE/dist/lib/pkgconfig
|
||||||
|
|
||||||
cmakeCommonArgs="-G Ninja -DCMAKE_INSTALL_PREFIX:PATH=$WORKSPACE/dist -DCMAKE_BUILD_TYPE=RelWithDebInfo"
|
cmakeCommonArgs="-G Ninja -DCMAKE_INSTALL_PREFIX:PATH=$WORKSPACE/dist -DCMAKE_BUILD_TYPE=Debug"
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
echo "Starting on SimGear"
|
echo "Starting on SimGear"
|
||||||
@@ -30,7 +30,6 @@ pushd sgBuild
|
|||||||
cmake ${cmakeCommonArgs} ../simgear
|
cmake ${cmakeCommonArgs} ../simgear
|
||||||
|
|
||||||
# compile
|
# compile
|
||||||
cmake --build . --target debug_symbols
|
|
||||||
cmake --build . --target install
|
cmake --build . --target install
|
||||||
|
|
||||||
if [ $? -ne '0' ]; then
|
if [ $? -ne '0' ]; then
|
||||||
@@ -52,7 +51,6 @@ fi
|
|||||||
|
|
||||||
cmake -DFG_BUILD_TYPE=$FGBUILDTYPE -DENABLE_SWIFT:BOOL=ON ${cmakeCommonArgs} ../flightgear
|
cmake -DFG_BUILD_TYPE=$FGBUILDTYPE -DENABLE_SWIFT:BOOL=ON ${cmakeCommonArgs} ../flightgear
|
||||||
|
|
||||||
cmake --build . --target debug_symbols
|
|
||||||
cmake --build . --target install
|
cmake --build . --target install
|
||||||
|
|
||||||
if [ $? -ne '0' ]; then
|
if [ $? -ne '0' ]; then
|
||||||
@@ -62,15 +60,7 @@ fi
|
|||||||
|
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
|
||||||
crashpad_bin_path=$WORKSPACE/dist/fgfs.app/Contents/MacOS/crashpad_handler
|
|
||||||
if [ -f $crashpad_bin_path ]; then
|
|
||||||
chmod +x $crashpad_bin_path
|
|
||||||
fi
|
|
||||||
|
|
||||||
chmod +x $WORKSPACE/dist/bin/osgversion
|
chmod +x $WORKSPACE/dist/bin/osgversion
|
||||||
echo "Running symbol upload script"
|
|
||||||
./sentry-dSYM-upload-mac.sh
|
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ t = Time.new
|
|||||||
fgCurrentYear = t.year
|
fgCurrentYear = t.year
|
||||||
fgBundleIdentifier = "org.flightgear.mac"
|
fgBundleIdentifier = "org.flightgear.mac"
|
||||||
|
|
||||||
fgVersion = File.read("#{srcDir}/flightgear-version").strip
|
fgVersion = File.read("#{srcDir}/version").strip
|
||||||
volName="\"FlightGear #{fgVersion}\""
|
volName="\"FlightGear #{fgVersion}\""
|
||||||
|
|
||||||
if $isRelease
|
if $isRelease
|
||||||
|
|||||||
@@ -42,8 +42,8 @@ NEXT_MINOR_VERSION=${VERSION_A[1]}
|
|||||||
setVersionTo() {
|
setVersionTo() {
|
||||||
local V="$1"
|
local V="$1"
|
||||||
echo "setting version to $V"
|
echo "setting version to $V"
|
||||||
echo "$V" > flightgear-version
|
echo "$V" > version
|
||||||
git add flightgear-version
|
git add version
|
||||||
echo "new version: $V" | git commit --file=-
|
echo "new version: $V" | git commit --file=-
|
||||||
# git tag "version/$V"
|
# git tag "version/$V"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
THIS_RELEASE="2020.2"
|
THIS_RELEASE="2020.1"
|
||||||
NEXT_RELEASE="2020.3"
|
NEXT_RELEASE="2020.2"
|
||||||
SUBMODULES="simgear flightgear fgdata getstart"
|
SUBMODULES="simgear flightgear fgdata getstart"
|
||||||
|
|
||||||
#:<< 'COMMENT_END'
|
#:<< 'COMMENT_END'
|
||||||
|
|||||||
@@ -33,9 +33,9 @@ MICRO_VERSION=${VERSION_A[2]}
|
|||||||
|
|
||||||
setVersionTo() {
|
setVersionTo() {
|
||||||
local V="$1"
|
local V="$1"
|
||||||
echo "setting version to $V in $2"
|
echo "setting version to $V"
|
||||||
echo "$V" > $2
|
echo "$V" > version
|
||||||
git add $2
|
git add version
|
||||||
echo "new version: $V" | git commit --file=-
|
echo "new version: $V" | git commit --file=-
|
||||||
git tag "version/$V"
|
git tag "version/$V"
|
||||||
}
|
}
|
||||||
@@ -43,22 +43,9 @@ setVersionTo() {
|
|||||||
while [ $# -gt 0 ]; do
|
while [ $# -gt 0 ]; do
|
||||||
echo "Processing $1"
|
echo "Processing $1"
|
||||||
pushd $1 > /dev/null
|
pushd $1 > /dev/null
|
||||||
|
|
||||||
case $1 in
|
|
||||||
flightgear)
|
|
||||||
versionFileName="flightgear-version"
|
|
||||||
;;
|
|
||||||
simgear)
|
|
||||||
versionFileName="simgear-version"
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
versionFileName="version"
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
git config user.name "Automatic Release Builder"
|
git config user.name "Automatic Release Builder"
|
||||||
git config user.email "build@flightgear.org"
|
git config user.email "build@flightgear.org"
|
||||||
setVersionTo "${MAJOR_VERSION}.${MINOR_VERSION}.${MICRO_VERSION}" $versionFileName
|
setVersionTo "${MAJOR_VERSION}.${MINOR_VERSION}.${MICRO_VERSION}"
|
||||||
popd > /dev/null
|
popd > /dev/null
|
||||||
shift
|
shift
|
||||||
done
|
done
|
||||||
|
|||||||
+1
-1
Submodule simgear updated: 78d073a0f0...bd93fb279b
+1
-1
Submodule windows-3rd-party updated: 490305f746...790648cd69
Reference in New Issue
Block a user