Skip to content

Commit

Permalink
Apple: reverting CFBundleVersion to old format (#208)
Browse files Browse the repository at this point in the history
users reported that they were relying on the old format
  • Loading branch information
Shchvova committed Dec 13, 2020
1 parent b96c2db commit 01356db
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions platform/resources/CoronaPListSupport.lua
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,10 @@ function CoronaPListSupport.modifyPlist( options )
-- set it to the current date and time which is unique for the app and human readable
bundleVersionSource = (infoPlist.CFBundleVersion == "@BUNDLE_VERSION@") and "set by Simulator" or "set by Info.plist"
infoPlist.CFBundleVersion = os.date("%Y.7%m.7%d%H%M")
local datedata = os.date( "!*t")
if datedata.year > 2020 then
infoPlist.CFBundleVersion = datedata.year .. '.' .. datedata.month.."." .. datedata.day .. os.date("!%H%M")
end
end

local version = options.bundleversion or "1.0.0"
Expand Down

0 comments on commit 01356db

Please sign in to comment.