Modified script and docs.

master
DominikDeak 4 years ago
parent 757acddc1b
commit d17d9a00de
No known key found for this signature in database
GPG Key ID: 85514EC0CCE7007C
  1. 3
      Documentation/BuildMacOS.md
  2. 11
      Documentation/HelpLinux.txt
  3. 9
      Documentation/HelpMacOS.txt
  4. 10
      Documentation/HelpWindows.txt
  5. 10
      buildLinux.sh
  6. 2
      buildMacOS.sh
  7. 12
      buildWindows.cmd

@ -22,6 +22,7 @@
Run the command script `buildMacOS.sh --all` to build all packages. For other options, run with the `--help` switch.
### Compiling (Hard Mode)
<!-- ### Compiling (Hard Mode)
Alternatively, you can opt to build the binaries only, as detailed below. We're assuming the current path is in the `Synergy-Binaries` project root.
-->

@ -11,18 +11,17 @@ DESCRIPTION
-h, --help
Display this help message.
--cmake
Build binaries only with CMake.
--bin
Build binaries only.
--appimage
Build an AppImage package.
Build binaries and package them as an AppImage.
--deb
Build a Debian package.
Build binaries and package them as a Debian package.
--all
Build all packages.
Build all targets.
--clean
Clean the build and output locations.

@ -1,5 +1,5 @@
NAME
buildMacOS.sh - Build Linux Binaries for Synergy
buildMacOS.sh - Build macOS Binaries for Synergy
SYNOPSIS
./buildMacOS.sh [OPTION]
@ -12,14 +12,13 @@ DESCRIPTION
Display this help message.
--app
Build the application bundle.
Build application bundle only.
--dmg
Build a DMG disk image file.
Build binaries and package them as a DMG disk image file.
--all
Build all packages.
Build all targets.
--clean
Clean the build and output locations.

@ -11,17 +11,17 @@ DESCRIPTION
-h, --help
Display this help message.
--msbuild
Build binaries only with MSBuild.
--bin
Build binaries only.
--msi
Build an MSI package.
Build binaries and package them as MSI installer.
--zip
Build a standalone ZIP package.
Build standalone binaries and package them as a ZIP file.
--all
Build all packages.
Build all targets.
--clean
Clean the build and output locations.

@ -48,7 +48,7 @@ configure() {
}
buildCMake() {
buildBinaries() {
cmake --build "${buildPath}" --parallel 8 || exit 1
@ -122,15 +122,15 @@ if [ "${1}" = "--help" ] || [ "${1}" = "-h" ]; then
cat "${toplevelPath}/Documentation/HelpLinux.txt"
elif [ "${1}" = "--cmake" ]; then
elif [ "${1}" = "--bin" ]; then
configure
buildCMake
buildBinaries
elif [ "${1}" = "--appimage" ]; then
configure
buildCMake
buildBinaries
buildAppImage
elif [ "${1}" = "--deb" ]; then
@ -141,7 +141,7 @@ elif [ "${1}" = "--deb" ]; then
elif [ "${1}" = "--all" ]; then
configure
buildCMake
buildBinaries
buildAppImage
buildDeb

@ -79,7 +79,7 @@ buildDMG() {
ln -s /Applications "${buildPath}/bundle/Applications"
hdiutil create -volname "Synergy ${synergyVersion}" -srcfolder "${buildPath}/bundle" -ov -format UDBZ "${binariesPath}/${synergyReleaseName}.dmg" || exit 1
hdiutil create -volname "Synergy ${synergyVersion}" -srcfolder "${buildPath}/bundle" -ov -format UDZO "${binariesPath}/${synergyReleaseName}.dmg" || exit 1
}

@ -54,27 +54,27 @@ if [%1] equ [--help] (
type "%toplevelPath%\Documentation\HelpWindows.txt"
) else if [%1] equ [--msbuild] (
) else if [%1] equ [--bin] (
call :configure
call :buildMSBuild
call :buildBinaries
) else if [%1] equ [--msi] (
call :configure
call :buildMSBuild
call :buildBinaries
call :buildMSI
) else if [%1] equ [--zip] (
call :configure
call :buildMSBuild
call :buildBinaries
call :buildZIP
) else if [%1] equ [--all] (
call :configure
call :buildMSBuild
call :buildBinaries
call :buildMSI
call :buildZIP
@ -117,7 +117,7 @@ exit 0
call :configureVersion
exit /b 0
:buildMSBuild
:buildBinaries
pushd "%buildPath%"

Loading…
Cancel
Save