Use one build number across phone, Mac and Status
This commit is contained in:
@@ -116,6 +116,7 @@ final class API: Sendable {
|
||||
self.origin = origin
|
||||
let config = URLSessionConfiguration.default
|
||||
config.httpAdditionalHeaders = [
|
||||
"Byre-Build": Bundle.main.object(forInfoDictionaryKey: "CFBundleVersion") as! String,
|
||||
"Byre-Client": clientID,
|
||||
"Byre-Commit": Bundle.main.object(forInfoDictionaryKey: "ByreCommit") as! String,
|
||||
"Byre-Device": deviceKind,
|
||||
|
||||
@@ -499,7 +499,7 @@ private struct ClientTable: View {
|
||||
}
|
||||
|
||||
private func build(_ c: ConnectedClient) -> String {
|
||||
c.commit.isEmpty ? "—" : String(c.commit.prefix(8))
|
||||
c.build.isEmpty ? "—" : c.build
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -49,7 +49,7 @@ ditto "$build/TailscaleKit.framework" "$app/Contents/Frameworks/TailscaleKit.fra
|
||||
cp "$mac/Info.plist" "$app/Contents/Info.plist"
|
||||
plutil -insert ByreCommit -string "$(git -C "$root" rev-parse HEAD)" "$app/Contents/Info.plist"
|
||||
plutil -insert CFBundleShortVersionString -string "$version" "$app/Contents/Info.plist"
|
||||
plutil -insert CFBundleVersion -string "$(git -C "$root" rev-list --count HEAD)" "$app/Contents/Info.plist"
|
||||
plutil -insert CFBundleVersion -string "$(git -C "$root" log -1 --format=%ct)" "$app/Contents/Info.plist"
|
||||
cp "$mac"/fonts/*.woff2 "$app/Contents/Resources/fonts/"
|
||||
cp "$icns" "$app/Contents/Resources/byre.icns"
|
||||
cp "$mac/byre.provisionprofile" "$app/Contents/embedded.provisionprofile"
|
||||
|
||||
@@ -8,4 +8,5 @@ ditto "$mount/Byre.app" /Applications/Byre.app.new
|
||||
hdiutil detach "$mount"
|
||||
rm -rf /Applications/Byre.app
|
||||
mv /Applications/Byre.app.new /Applications/Byre.app
|
||||
plutil -extract CFBundleVersion raw /Applications/Byre.app/Contents/Info.plist
|
||||
plutil -extract ByreCommit raw /Applications/Byre.app/Contents/Info.plist
|
||||
|
||||
+1
-1
@@ -40,7 +40,7 @@ plutil -insert CFBundleIcons -xml "$(plutil -extract CFBundleIcons xml1 -o - "$b
|
||||
plutil -insert ByreCommit -string "$(git -C "$root" rev-parse HEAD)" "$plist"
|
||||
version=$(git -C "$root" describe --tags --abbrev=0)
|
||||
plutil -insert CFBundleShortVersionString -string "${version#v}" "$plist"
|
||||
plutil -insert CFBundleVersion -string "$(date -u +%Y%m%d.%H%M%S)" "$plist"
|
||||
plutil -insert CFBundleVersion -string "$(git -C "$root" log -1 --format=%ct)" "$plist"
|
||||
platform=$(xcrun --sdk "$sdk" --show-sdk-platform-version)
|
||||
sdkbuild=$(xcrun --sdk "$sdk" --show-sdk-build-version)
|
||||
plutil -insert CFBundleSupportedPlatforms -xml "<array><string>$(if [ "$sdk" = iphoneos ]; then echo iPhoneOS; else echo iPhoneSimulator; fi)</string></array>" "$plist"
|
||||
|
||||
Reference in New Issue
Block a user