diff --git a/mac/deploy.sh b/mac/deploy.sh index ae2ed3f9..fffdbbeb 100755 --- a/mac/deploy.sh +++ b/mac/deploy.sh @@ -31,6 +31,11 @@ if [ ! -f "${ROOT_PATH}/${APP_NAME}.pro" ]; then exit 1 fi +# Install dmgbuild (for the current user), this is required to build the installer image +python -m ensurepip --user --default-pip +python -m pip install --user dmgbuild +DMGBUILD_BIN="$(python -c 'import site; print(site.USER_BASE)')/bin/dmgbuild" + # Get Jamulus version APP_VERSION=$(cat "${ROOT_PATH}/${APP_NAME}.pro" | sed -nE 's/^VERSION *= *(.*)$/\1/p') @@ -44,9 +49,9 @@ mkdir -p "${DEPLOY_PATH}" build_app "${APP_NAME}" # Build Jamulus server -build_app "${SERVER_NAME}" "DEFINES+=SERVER_MODE" +build_app "${SERVER_NAME}" "DEFINES+=SERVER_BUNDLE" # Build installer image -dmgbuild -s "${MAC_PATH}/deployment_settings.py" -D background="${RES_PATH}/installerbackground.png" \ +"${DMGBUILD_BIN}" -s "${MAC_PATH}/deployment_settings.py" -D background="${RES_PATH}/installerbackground.png" \ -D app_path="${DEPLOY_PATH}/${APP_NAME}.app" -D server_path="${DEPLOY_PATH}/${SERVER_NAME}.app" \ -D license="${ROOT_PATH}/COPYING" "${APP_NAME} Installer" "${DEPLOY_PATH}/${INSTALLER_NAME}.dmg" diff --git a/mac/deployment_settings.py b/mac/deployment_settings.py index 622ae85f..2ceb4b3a 100644 --- a/mac/deployment_settings.py +++ b/mac/deployment_settings.py @@ -64,9 +64,9 @@ include_list_view_settings = False # Where to put the icons icon_locations = { - app_name: (600, 240), - server_name: (500, 240), - "Applications": (790, 240) + app_name: (630, 210), + server_name: (530, 210), + "Applications": (820, 210) } # View/Window element configuration @@ -76,18 +76,17 @@ show_toolbar = False show_pathbar = False show_sidebar = False show_icon_preview = False -sidebar_width = 180 # Window position in ((x, y), (w, h)) format -window_rect = ((200, 400), (900, 340)) +window_rect = ((200, 400), (900, 320)) # Icon view configuration arrange_by = None grid_offset = (0, 0) -grid_spacing = 100 +grid_spacing = 72 scroll_position = (0, 0) label_pos = "bottom" -icon_size = 80 +icon_size = 72 text_size = 12 # License configuration diff --git a/src/main.cpp b/src/main.cpp index 43e27cd1..aa6a0b60 100755 --- a/src/main.cpp +++ b/src/main.cpp @@ -44,7 +44,9 @@ int main ( int argc, char** argv ) // initialize all flags and string which might be changed by command line // arguments -#if defined( SERVER_MODE ) && ( defined( __APPLE__ ) || defined( __MACOSX ) ) + +#if defined( SERVER_BUNDLE ) && ( defined( __APPLE__ ) || defined( __MACOSX ) ) + // if we are on MacOS and we are building a server bundle, starts Jamulus in server mode bool bIsClient = false; #else bool bIsClient = true; diff --git a/src/res/installerbackground.png b/src/res/installerbackground.png index f2ddd9cd..230d2fb6 100644 Binary files a/src/res/installerbackground.png and b/src/res/installerbackground.png differ diff --git a/src/res/installerbackground.xcf b/src/res/installerbackground.xcf index 4b487005..a5776467 100644 Binary files a/src/res/installerbackground.xcf and b/src/res/installerbackground.xcf differ