Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions apple/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
<!-- The commit built, shown next to the version; never compared. -->
<key>BuildCommit</key>
<string>@COMMIT@</string>
<!-- The GitHub repository the build came from, linked from About. -->
<key>SourceURL</key>
<string>@SOURCE_URL@</string>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<!-- Also lists the app under System Settings › Language & Region › Applications. -->
Expand Down
9 changes: 9 additions & 0 deletions apple/Omnitun/SettingsView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,22 @@ private struct AboutView: View {
return details.isEmpty ? short : "\(short) (\(details.joined(separator: ", ")))"
}

/// The repository this build came from, set at packaging; absent when
/// the app runs unpackaged.
private var source: URL? {
(Bundle.main.infoDictionary?["SourceURL"] as? String).flatMap(URL.init(string:))
}

var body: some View {
VStack(spacing: 12) {
Image(nsImage: NSApp.applicationIconImage).resizable().frame(width: 96, height: 96)
Text(verbatim: brand.product).font(.title.bold())
Text(String(localized: "Version \(version)")).foregroundStyle(.secondary).textSelection(.enabled)
Text("A VPN client for FortiGate SSL VPN, IPsec, OpenVPN, L2TP and WireGuard, several at a time.")
.multilineTextAlignment(.center)
if let source {
Link("Source Code on GitHub", destination: source).font(.callout)
}
Divider().frame(width: 300)
Text(verbatim: "© 2026 GarageDeveloper and the \(brand.product) contributors")
Text("Free software: use, change and share it under the MIT license or the Apache License 2.0, as you prefer.")
Expand Down
1 change: 1 addition & 0 deletions apple/Resources/fr.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,7 @@
"Version %@" = "Version %@";
"A VPN client for FortiGate SSL VPN, IPsec, OpenVPN, L2TP and WireGuard, several at a time." = "Un client VPN pour le VPN SSL FortiGate, IPsec, OpenVPN, L2TP et WireGuard, plusieurs à la fois.";
"Free software: use, change and share it under the MIT license or the Apache License 2.0, as you prefer." = "Logiciel libre : utilisez-le, modifiez-le et partagez-le selon la licence MIT ou la licence Apache 2.0, au choix.";
"Source Code on GitHub" = "Code source sur GitHub";
"MIT License" = "Licence MIT";
"Apache License 2.0" = "Licence Apache 2.0";
"OpenVPN or WireGuard File (.ovpn, .conf)…" = "Fichier OpenVPN ou WireGuard (.ovpn, .conf)…";
Expand Down
3 changes: 2 additions & 1 deletion apple/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ if [ -n "$(git status --porcelain --untracked-files=no 2>/dev/null)" ]; then
fi
export OMNITUN_COMMIT="$COMMIT"
REPO=${REPO:-GarageDeveloper/omnitun}
SOURCE_URL="https://github.com/$REPO"
FEED_URL="https://github.com/$REPO/releases/latest/download/appcast.xml"

dist=apple/dist
Expand Down Expand Up @@ -84,7 +85,7 @@ subst() {
sed -e "s|@PRODUCT@|$PRODUCT|g" -e "s|@ID@|$ID|g" -e "s|@RDNS@|$RDNS|g" -e "s|@DAEMON@|$DAEMON|g" -e "s|@CLI@|$CLI|g" \
-e "s|@ENGINE@|$ENGINE|g" -e "s|@ENGINE_USER@|$ENGINE_USER|g" \
-e "s|@LABEL@|$LABEL|g" -e "s|@BUNDLE_ID@|$BUNDLE_ID|g" -e "s|@VERSION@|$VERSION|g" -e "s|@BUILD@|$BUILD|g" \
-e "s|@FEED_URL@|$FEED_URL|g" -e "s|@COMMIT@|$COMMIT|g" "$1"
-e "s|@FEED_URL@|$FEED_URL|g" -e "s|@SOURCE_URL@|$SOURCE_URL|g" -e "s|@COMMIT@|$COMMIT|g" "$1"
}
subst apple/Info.plist > "$app/Contents/Info.plist"
cp -R apple/Resources/en.lproj apple/Resources/fr.lproj "$app/Contents/Resources/"
Expand Down
Loading