mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-08-29 10:21:34 +00:00
fix: macOS appstore versioning error
This commit is contained in:
@@ -1075,14 +1075,21 @@ jobs:
|
|||||||
default_platform(:mac)
|
default_platform(:mac)
|
||||||
|
|
||||||
lane :fetch_build_number do
|
lane :fetch_build_number do
|
||||||
number = app_store_build_number(
|
live_number = app_store_build_number(
|
||||||
|
live: true,
|
||||||
|
platform: "osx",
|
||||||
|
api_key_path: "/tmp/asc_keys/api_key.json",
|
||||||
|
app_identifier: "com.karmaa.termix",
|
||||||
|
initial_build_number: 0,
|
||||||
|
)
|
||||||
|
pending_number = app_store_build_number(
|
||||||
live: false,
|
live: false,
|
||||||
platform: "osx",
|
platform: "osx",
|
||||||
api_key_path: "/tmp/asc_keys/api_key.json",
|
api_key_path: "/tmp/asc_keys/api_key.json",
|
||||||
app_identifier: "com.karmaa.termix",
|
app_identifier: "com.karmaa.termix",
|
||||||
version: "$APP_VERSION",
|
|
||||||
initial_build_number: 0,
|
initial_build_number: 0,
|
||||||
)
|
)
|
||||||
|
number = [live_number, pending_number].max
|
||||||
File.write("$OUT_FILE", number.to_s)
|
File.write("$OUT_FILE", number.to_s)
|
||||||
end
|
end
|
||||||
EOF
|
EOF
|
||||||
|
|||||||
Reference in New Issue
Block a user