Browse Source

Create macOS dmg on make dist

tags/v2.3.0-RC1
falkTX 3 years ago
parent
commit
cff0cf76fb
7 changed files with 19 additions and 10 deletions
  1. +2
    -0
      Makefile
  2. +14
    -7
      Makefile.dist.mk
  3. +0
    -0
      data/macos/Carla-Control.plist
  4. +0
    -0
      data/macos/Carla.plist
  5. +1
    -1
      data/macos/CarlaVstFxShell.plist
  6. +1
    -1
      data/macos/CarlaVstShell.plist
  7. +1
    -1
      data/macos/bundle.py

+ 2
- 0
Makefile View File

@@ -22,6 +22,8 @@ else
MODULEDIR := $(CURDIR)/build/modules/Release
endif

VERSION := 2.3

# ---------------------------------------------------------------------------------------------------------------------

all: backend discovery bridges-plugin bridges-ui frontend interposer libjack plugin theme


+ 14
- 7
Makefile.dist.mk View File

@@ -96,13 +96,20 @@ CARLA_CONTROL_APP_FILES = $(_CARLA_CONTROL_APP_FILES:%=build/Carla-Control.app/C
# ----------------------------------------------------------------------------------------------------------------------------
# entry point

TARGETS = \
build/Carla.app/Contents/Info.plist \
build/Carla-Control.app/Contents/Info.plist \
build/Carla-Plugins.pkg
TARGETS = Carla-$(VERSION)-macOS.dmg

dist: $(TARGETS)

# ----------------------------------------------------------------------------------------------------------------------------
# create final file

Carla-$(VERSION)-macOS.dmg: build/Carla.app/Contents/Info.plist build/Carla-Control.app/Contents/Info.plist build/Carla-Plugins.pkg
rm -rf build/macos-pkg $@
mkdir build/macos-pkg
cp -r build/Carla.app build/Carla-Control.app build/Carla-Plugins.pkg data/macos/README build/macos-pkg/
hdiutil create $@ -srcfolder build/macos-pkg -volname "Carla-$(VERSION)" -fs HFS+ -ov
rm -rf build/macos-pkg

# ----------------------------------------------------------------------------------------------------------------------------
# final cleanup, after everything is in place

@@ -162,7 +169,7 @@ endef

build/Carla.app/Contents/MacOS/Carla: build/Carla.app/Contents/MacOS/lib/library.zip

build/Carla.app/Contents/MacOS/lib/library.zip: $(CARLA_APP_ZIPS) data/macos/bundle.py data/macos/Carla_Info.plist source/frontend/*
build/Carla.app/Contents/MacOS/lib/library.zip: $(CARLA_APP_ZIPS) data/macos/bundle.py data/macos/Carla.plist source/frontend/*
$(call GENERATE_LIBRARY_ZIP,Carla)
# merge all zips into 1
rm -rf build/Carla.app/Contents/MacOS/lib/_lib
@@ -179,7 +186,7 @@ build/Carla.app/Contents/MacOS/lib/library.zip: $(CARLA_APP_ZIPS) data/macos/bun

build/Carla-Control.app/Contents/MacOS/Carla-Control: build/Carla-Control.app/Contents/MacOS/lib/library.zip

build/Carla-Control.app/Contents/MacOS/lib/library.zip: data/macos/bundle.py data/macos/Carla-Control_Info.plist source/frontend/*
build/Carla-Control.app/Contents/MacOS/lib/library.zip: data/macos/bundle.py data/macos/Carla-Control.plist source/frontend/*
$(call GENERATE_LIBRARY_ZIP,Carla-Control)

# ----------------------------------------------------------------------------------------------------------------------------
@@ -232,7 +239,7 @@ build/Carla-Plugins.pkg: build/carla-lv2.pkg build/carla-vst2fx.pkg build/carla-
--distribution data/macos/package.xml \
--identifier studio.kx.carla \
--package-path "build" \
--version "2.3.0-alpha3" \
--version "$(VERSION)" \
"$@"

build/carla-lv2.pkg: $(_CARLA_LV2_PLUGIN_FILES:%=build/%)


data/macos/Carla-Control_Info.plist → data/macos/Carla-Control.plist View File


data/macos/Carla_Info.plist → data/macos/Carla.plist View File


+ 1
- 1
data/macos/CarlaVstFxShell.plist View File

@@ -9,7 +9,7 @@
<key>CFBundleIconFile</key>
<string></string>
<key>CFBundleIdentifier</key>
<string>studio.kx.carla.CarlaVstFxShell</string>
<string>studio.kx.carla.vst2fx</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>


+ 1
- 1
data/macos/CarlaVstShell.plist View File

@@ -9,7 +9,7 @@
<key>CFBundleIconFile</key>
<string></string>
<key>CFBundleIdentifier</key>
<string>studio.kx.carla.CarlaVstShell</string>
<string>studio.kx.carla.vst2syn</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>


+ 1
- 1
data/macos/bundle.py View File

@@ -28,7 +28,7 @@ boptions = {
}

if SCRIPT_NAME in ("Carla", "Carla-Control"):
boptions["custom_info_plist"] = "./data/macos/%s_Info.plist" % SCRIPT_NAME
boptions["custom_info_plist"] = "./data/macos/%s.plist" % SCRIPT_NAME

setup(name = "Carla",
version = VERSION,


Loading…
Cancel
Save