Work on build script.

master
Dominik Deak 5 years ago
parent 76dac8f3da
commit 7f3c00c32c
  1. 4
      .gitignore
  2. 0
      Build/.keep
  3. 30
      BuildLinux.sh

4
.gitignore vendored

@ -1,2 +1,2 @@
Build/*
!Build/.keep
Binaries/*
!Binaries/.keep

@ -1,9 +1,9 @@
#!/bin/bash
scriptPath="$( cd "$(dirname "${0}")" ; pwd -P )"
buildPath="${scriptPath}/Build"
binariesPath="${scriptPath}/Binaries"
synergyCorePath="${scriptPath}/Synergy-Core"
buildPath="${synergyCorePath}/build"
binariesPath="${scriptPath}/Binaries"
source /etc/os-release || exit 1
cat "${synergyCorePath}/Build.properties" | perl -pe "s/(SYNERGY\w+) *= */export \1=/" > "${buildPath}/version"
@ -52,25 +52,34 @@ buildAppImage() {
buildDeb() {
pushd "${buildPath}" || exit 1
pushd "${synergyCorePath}" || exit 1
pushd "${synergyCorePath}" || exit 1
printf "synergy (${synergyVersion}) ${SYNERGY_VERSION_STAGE}; urgency=medium\n" > "debian/changelog"
debuild --set-envvar CMAKE_BUILD_TYPE=MINSIZEREL --set-envvar SYNERGY_ENTERPRISE=ON -us -uc
git clean -fd
printf "synergy (${synergyVersion}) ${synergyStage}; urgency=medium\n" > "debian/changelog"
debuild --set-envvar CMAKE_BUILD_TYPE=MINSIZEREL --set-envvar SYNERGY_ENTERPRISE=ON -us -uc
git clean -fd
popd
popd
pushd "${buildPath}" || exit 1
mv "${synergyCorePath}/../"*.deb "${binariesPath}"
rm "${synergyCorePath}/../synergy_${synergyVersion}"*
rm "${synergyCorePath}/../synergy-dbgsym_${synergyVersion}"*
rename "s/(\\d+\\.\\d+.\\d+)/\$1-${linuxVersion}/g" "${binariesPath}"/*.deb
mv "${synergyCorePath}/../synergy_${synergyVersion}"* "${buildPath}"
mv "${synergyCorePath}/../synergy-dbgsym_${synergyVersion}"* "${buildPath}"
popd
}
buildClean() {
pushd "${synergyCorePath}" || exit 1
git clean -fd
popd
rm -fR "${buildPath}/"*
rm -fR "${binariesPath}/"*
@ -79,7 +88,6 @@ buildClean() {
}
if [ "${1}" = "--help" ] || [ "${1}" = "-h" ]; then
echo \

Loading…
Cancel
Save