Skip to content

Commit

Permalink
Set bundle version
Browse files Browse the repository at this point in the history
  • Loading branch information
indianakernick committed Jul 8, 2020
1 parent ae9aee7 commit 44e7dac
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions Animera.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -3281,6 +3281,7 @@
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = QY44MADGVC;
ENABLE_HARDENED_RUNTIME = YES;
FRAMEWORK_SEARCH_PATHS = (
Expand Down Expand Up @@ -3313,6 +3314,7 @@
);
LLVM_LTO = NO;
MACOSX_DEPLOYMENT_TARGET = 10.14;
MARKETING_VERSION = 0.1.0;
OTHER_CPLUSPLUSFLAGS = (
"$(OTHER_CFLAGS)",
"-Wall",
Expand Down Expand Up @@ -3345,6 +3347,7 @@
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 1;
DEAD_CODE_STRIPPING = YES;
DEVELOPMENT_TEAM = QY44MADGVC;
ENABLE_HARDENED_RUNTIME = YES;
Expand Down Expand Up @@ -3380,6 +3383,7 @@
);
LLVM_LTO = YES;
MACOSX_DEPLOYMENT_TARGET = 10.14;
MARKETING_VERSION = 0.1.0;
OTHER_CPLUSPLUSFLAGS = (
"$(OTHER_CFLAGS)",
"-Wall",
Expand Down
4 changes: 2 additions & 2 deletions Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<string>$(MARKETING_VERSION)</string>
<key>CFBundleVersion</key>
<string>1</string>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.graphics-design</string>
<key>LSMinimumSystemVersion</key>
Expand Down
4 changes: 2 additions & 2 deletions scripts/create-dmg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Puts the app package into a dmg file

# Requires PROJECT_DIR, BUILT_PRODUCTS_DIR, EXECUTABLE_PATH, FULL_PRODUCT_NAME,
# CODE_SIGN_IDENTITY, EXPANDED_CODE_SIGN_IDENTITY
# CODE_SIGN_IDENTITY, EXPANDED_CODE_SIGN_IDENTITY, MARKETING_VERSION
# Requires appdmg
# Requires envsubst from gettext

Expand All @@ -14,7 +14,7 @@ animera export --name=background --scale=4 "$BACKGROUND"
animera export --name=background@2x --scale=8 "$BACKGROUND"

envsubst < "$PROJECT_DIR/scripts/dmg.json" > expanded.json
appdmg expanded.json "$PROJECT_DIR/Animera.dmg"
appdmg expanded.json "$PROJECT_DIR/Animera-$MARKETING_VERSION.dmg"

rm expanded.json
rm background.png
Expand Down

0 comments on commit 44e7dac

Please sign in to comment.