mirror of
https://github.com/EmergeTools/Pow.git
synced 2026-03-25 08:55:50 +00:00
Build for release
This commit is contained in:
parent
bff3dcfabe
commit
5909c0086a
3 changed files with 24 additions and 22 deletions
|
|
@ -704,7 +704,6 @@
|
|||
INFOPLIST_FILE = "Pow-Example-Info.plist";
|
||||
INFOPLIST_KEY_CFBundleDisplayName = Pow;
|
||||
INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.developer-tools";
|
||||
INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES;
|
||||
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
|
||||
INFOPLIST_KEY_UILaunchScreen_Generation = YES;
|
||||
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
|
||||
|
|
@ -715,7 +714,7 @@
|
|||
"@executable_path/Frameworks",
|
||||
);
|
||||
MARKETING_VERSION = 1.0;
|
||||
PRODUCT_BUNDLE_IDENTIFIER = "io.movingparts.Pow-Example";
|
||||
PRODUCT_BUNDLE_IDENTIFIER = "io.movingparts.Pow-Example.Debug";
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
SWIFT_EMIT_LOC_STRINGS = YES;
|
||||
SWIFT_VERSION = 5.0;
|
||||
|
|
@ -737,7 +736,6 @@
|
|||
INFOPLIST_FILE = "Pow-Example-Info.plist";
|
||||
INFOPLIST_KEY_CFBundleDisplayName = Pow;
|
||||
INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.developer-tools";
|
||||
INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES;
|
||||
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
|
||||
INFOPLIST_KEY_UILaunchScreen_Generation = YES;
|
||||
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
|
||||
|
|
|
|||
|
|
@ -2,10 +2,10 @@
|
|||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>MVP_SRCROOT</key>
|
||||
<string>$(SRCROOT)</string>
|
||||
<key>ITSAppUsesNonExemptEncryption</key>
|
||||
<false/>
|
||||
<key>MVP_SRCROOT</key>
|
||||
<string>$(SRCROOT)</string>
|
||||
<key>UIApplicationSceneManifest</key>
|
||||
<dict>
|
||||
<key>UIApplicationSupportsMultipleScenes</key>
|
||||
|
|
|
|||
|
|
@ -2,24 +2,28 @@ fastlane_require 'git'
|
|||
|
||||
default_platform(:ios)
|
||||
|
||||
g = Git.open('.')
|
||||
def build_for_config(config)
|
||||
g = Git.open('.')
|
||||
build_app(
|
||||
project: "./Example/Pow Example.xcodeproj",
|
||||
export_method: "ad-hoc",
|
||||
skip_codesigning: true,
|
||||
destination: "generic/platform=iOS Simulator",
|
||||
configuration: config,
|
||||
skip_package_ipa: true)
|
||||
if ENV["PR_NUMBER"] && ENV["PR_NUMBER"] != "" && ENV["PR_NUMBER"] != "false"
|
||||
current_sha = g.log[0].parents[1].sha
|
||||
baseBuildId = g.log[0].parent.sha
|
||||
emerge(repo_name: "EmergeTools/Pow", pr_number: ENV["PR_NUMBER"], sha: current_sha, base_sha: baseBuildId)
|
||||
else
|
||||
current_sha = g.log[0].sha
|
||||
emerge(repo_name: "EmergeTools/Pow", sha: current_sha)
|
||||
end
|
||||
end
|
||||
|
||||
platform :ios do
|
||||
lane :build do
|
||||
build_app(
|
||||
project: "./Example/Pow Example.xcodeproj",
|
||||
export_method: "ad-hoc",
|
||||
skip_codesigning: true,
|
||||
destination: "generic/platform=iOS Simulator",
|
||||
configuration: "Debug",
|
||||
skip_package_ipa: true)
|
||||
if ENV["PR_NUMBER"] && ENV["PR_NUMBER"] != "" && ENV["PR_NUMBER"] != "false"
|
||||
current_sha = g.log[0].parents[1].sha
|
||||
baseBuildId = g.log[0].parent.sha
|
||||
emerge(repo_name: "EmergeTools/Pow", pr_number: ENV["PR_NUMBER"], sha: current_sha, base_sha: baseBuildId)
|
||||
else
|
||||
current_sha = g.log[0].sha
|
||||
emerge(repo_name: "EmergeTools/Pow", sha: current_sha)
|
||||
end
|
||||
build_for_config("Debug")
|
||||
build_for_config("Release")
|
||||
end
|
||||
end
|
||||
Loading…
Reference in a new issue