mirror of
https://github.com/munki/munki.git
synced 2026-05-06 20:39:30 -05:00
Add build script scaffold for swift munki (#1234)
This commit is contained in:
@@ -12,3 +12,6 @@ code/apps/munkishim/build/
|
||||
# ignore any pkgs build by tool scripts
|
||||
munkitools*.pkg
|
||||
Python.framework
|
||||
|
||||
# ignore paths related to building swift munki
|
||||
code/cli/munki/build/
|
||||
|
||||
Executable
+18
@@ -0,0 +1,18 @@
|
||||
#!/bin/zsh
|
||||
|
||||
check_exit_code() {
|
||||
if [ "$1" != "0" ]; then
|
||||
echo "$2: $1" 1>&2
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
SWIFT_MUNKI_DIR="./cli/munki"
|
||||
|
||||
# Build makecatalogs
|
||||
xcodebuild -project "$SWIFT_MUNKI_DIR/munki.xcodeproj" -scheme makecatalogs build
|
||||
check_exit_code "$?" "Error building makecatalogs"
|
||||
|
||||
# Build makepkginfo
|
||||
xcodebuild -project "$SWIFT_MUNKI_DIR/munki.xcodeproj" -scheme makepkginfo build
|
||||
check_exit_code "$?" "Error building makepkginfo"
|
||||
Reference in New Issue
Block a user