Skip to content

Commit dc130be

Browse files
committed
feat: Add version to DMG filename (v1.0.12)
1 parent 93380c9 commit dc130be

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

Sources/main.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ struct ContentView: View {
153153

154154
Spacer()
155155

156-
Text(installerManager.isInstalled ? "v1.0.11" : "")
156+
Text(installerManager.isInstalled ? "v1.0.12" : "")
157157
.font(.caption2)
158158
.foregroundStyle(.tertiary)
159159
}

create_app.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ APP_NAME="darkware zapret"
55
EXECUTABLE_NAME="DarkwareZapret"
66
BUNDLE_IDENTIFIER="com.darkware.zapret"
77
OUTPUT_DIR="."
8+
VERSION="1.0.12"
89

910
echo "Building..."
1011
swift build -c release
@@ -39,7 +40,7 @@ cat > "$OUTPUT_DIR/$APP_NAME.app/Contents/Info.plist" <<EOF
3940
<string>AppIcon</string>
4041
<key>CFBundlePackageType</key>
4142
<string>APPL</string>
42-
<string>1.0.11</string>
43+
<string>$VERSION</string>
4344
<key>LSMinimumSystemVersion</key>
4445
<string>15.0</string>
4546
<key>LSUIElement</key>
@@ -62,7 +63,7 @@ echo "Signing App Bundle (Ad-Hoc)..."
6263
codesign --force --deep --sign - "$OUTPUT_DIR/$APP_NAME.app"
6364

6465
echo "Creating DMG Installer..."
65-
DMG_NAME="DarkwareZapret_Installer"
66+
DMG_NAME="DarkwareZapret_v${VERSION}_Installer"
6667
VOL_NAME="Darkware Zapret Installer"
6768
STAGING_DIR="./dmg_staging"
6869

0 commit comments

Comments
 (0)