summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAmir Rajan <[email protected]>2020-11-17 10:31:08 -0800
committerGitHub <[email protected]>2020-11-17 10:31:08 -0800
commitb51fab967e4c13b6a0ae468c4f029f65746b8123 (patch)
treee1449cc3e33df467ed0e46d7f8a6013d6b33cffb
parent128fa1d90cea6289605a49daf56a0cbb72e2dd28 (diff)
parent3447c4f75ac8422617082579dd9b15a9f1aa374a (diff)
downloaddragonruby-game-toolkit-contrib-b51fab967e4c13b6a0ae468c4f029f65746b8123.tar.gz
dragonruby-game-toolkit-contrib-b51fab967e4c13b6a0ae468c4f029f65746b8123.zip
Merge pull request #35 from danhealy/dh/ios-wizard-fixes
iOS wizard: fix app id in Info.plist, fix dev profile path
-rw-r--r--dragon/ios_wizard.rb10
1 files changed, 7 insertions, 3 deletions
diff --git a/dragon/ios_wizard.rb b/dragon/ios_wizard.rb
index e38faf1..77fd703 100644
--- a/dragon/ios_wizard.rb
+++ b/dragon/ios_wizard.rb
@@ -140,7 +140,8 @@ class IOSWizard
end
def check_for_dev_profile
- if !($gtk.read_file 'profiles/development.mobileprovision')
+ @dev_profile_path = "profiles/development.mobileprovision"
+ if !($gtk.read_file @dev_profile_path)
$gtk.system "mkdir -p #{relative_path}/profiles"
$gtk.system "open #{relative_path}/profiles"
$gtk.system "echo Download the mobile provisioning profile and place it here with the name development.mobileprovision > #{relative_path}/profiles/README.txt"
@@ -409,7 +410,7 @@ XML
</dict>
</dict>
<key>CFBundleIdentifier</key>
- <string>com.carlile.swisscheese</string>
+ <string>:app_id</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
@@ -537,7 +538,10 @@ XML
# <string>UIInterfaceOrientationPortrait</string>
# <string>UIInterfaceOrientationLandscapeRight</string>
- $gtk.write_file_root "tmp/ios/#{@app_name}.app/Info.plist", info_plist_string.gsub(":app_name", @app_name).strip
+ info_plist_string.gsub!(":app_name", @app_name)
+ info_plist_string.gsub!(":app_id", @app_id)
+
+ $gtk.write_file_root "tmp/ios/#{@app_name}.app/Info.plist", info_plist_string.strip
@info_plist_written = true
end