Skip to content

Commit

Permalink
Use git to name the pkg file during the build
Browse files Browse the repository at this point in the history
  • Loading branch information
shysaur committed Sep 29, 2017
1 parent 838c68e commit f5fbe1c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion makepackage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ xcodebuild -project "$PWD/ChiptuneImporter.xcodeproj" \
DSTROOT="$PWD/build/Package/Root"

# Extract the version number from the project...
ver=$(/usr/libexec/PlistBuddy -c "Print:CFBundleShortVersionString" "ChiptuneImporter/ChiptuneImporter-Info.plist")
ver=$(git describe | sed 's/release_//')
if [[ ! ( $? -eq 0 ) ]]; then
ver=$(/usr/libexec/PlistBuddy -c "Print:CFBundleShortVersionString" "ChiptuneImporter/ChiptuneImporter-Info.plist");
fi

# Make the package with pkgbuild and the product distribution with productbuild...
echo pkgbuild...
Expand Down

0 comments on commit f5fbe1c

Please sign in to comment.