Commit 546b7796 authored by Gregor Longariva's avatar Gregor Longariva 💬
Browse files

fastlane now up and runnig, building and notarizing the app

parent b9a116aa
......@@ -38,23 +38,17 @@ lane :getlatestag do
tags.join()
end
lane :beta do
lane :commonTasks do
desc "perform some commont build tasks"
id = getbundleid
tag = getlatestag
signing_id = ENV["SIGNING_ID"]
#app_store_connect_api_key()
app_store_connect_api_key(
is_key_content_base64: true
)
#match()
# testet auf die Verfügbarkeit einer Xcode Version (in dem Fall nur auf major release)
#xcversion(version: "~> 12")
# dasselbe wie oben, nur strikter
ensure_xcode_version(
version: "13",
strict: false
)
#ensure_git_status_clean
desc "test for proper Xcode version"
xcversion(version: "~> 13")
desc "lint those drity lines of code"
swiftlint(
mode: :lint, # SwiftLint mode: :lint (default) or :autocorrect
output_file: "swiftlint.result.json", # The path of the output file (optional)
......@@ -70,99 +64,53 @@ lane :beta do
ignore_exit_status: false # Allow fastlane to continue even if SwiftLint returns a non-zero exit status
)
get_certificates
sync_code_signing
gym(
clean: true,
silent: false,
output_directory: "build/",
export_method: "development",
)
#build_mac_app(
# output_directory: "build/",
# scheme: "NetworkShareMounter",
# export_method: "development"
#)
#dmg(
# path: "build/Network Share Mounter.app",
# output_path: "build/Network Share Mounter.dmg",
# volume_name: "NetworkShareMounter"
#)
notarize(
use_notarytool: false,
package: "build/Network Share Mounter.app",
bundle_id: "de.fau.rrze.NetworkShareMounter",
username: "rrze-apple-entwickler@fau.de"
export_options: "./ExportOptions.plist"
)
end
lane :notar do
team_id("C8F68RFW4L")
debug
lane :beta do
desc "incerement Xcodes build number"
increment_build_number(
xcodeproj: "networkShareMounter.xcodeproj"
)
commonTasks
desc "Create DMG image"
dmg(
path: "build/Network Share Mounter.app",
output_path: "build/NetworkShareMounterBeta.dmg",
volume_name: "NetworkShareMounter-Beta"
)
desc "Notarize App"
notarize(
package: "build/Network Share Mounter.app",
bundle_id: "de.fau.rrze.NetworkShareMounter",
username: "rrze-apple-entwickler@fau.de"
)
package: "build/NetworkShareMounterBeta.dmg",
bundle_id: "de.fau.rrze.NetworkShareMounter",
username: "rrze-apple-entwickler@fau.de"
)
end
lane :release do
id = getbundleid
tag = getlatestag
signing_id = ENV["SIGNING_ID"]
# testet auf die Verfügbarkeit einer Xcode Version (in dem Fall nur auf major release)
#xcversion(version: "~> 12")
# dasselbe wie oben, nur strikter
ensure_xcode_version(
version: "13",
strict: false
)
desc "Ensure git has a clean status"
ensure_git_status_clean
swiftlint(
mode: :lint, # SwiftLint mode: :lint (default) or :autocorrect
output_file: "swiftlint.result.json", # The path of the output file (optional)
config_file: ".swiftlint-ci.yml", # The path of the configuration file (optional)
files: [ # List of files to process (optional)
"Network Share Mounter/AppDelegate.swift",
"Network Share Mounter/Monitor.swift",
"Network Share Mounter/Mounter.swift",
"Network Share Mounter/NetworkShareMounterViewController.swift",
"Network Share Mounter/config.swift"
],
raise_if_swiftlint_error: true, # Allow fastlane to raise an error if swiftlint fails
ignore_exit_status: false # Allow fastlane to continue even if SwiftLint returns a non-zero exit status
)
get_certificates
desc "incerement Xcodes build number"
increment_build_number(
xcodeproj: "networkShareMounter.xcodeproj"
)
gym(
clean: true,
silent: false,
output_directory: "build/",
export_method: "mac-application",
#skip_codesigning: true,
#skip_archive: true
)
#increment_version_number(
# bump_type: "patch",
# #version_number: "1.0.5", # specify specific version number (optional, omitting it increments patch version number)
# xcodeproj: "networkShareMounter.xcodeproj" # (optional, you must specify the path to your main Xcode project if it is not in the project root directory)
#)
build_mac_app(
scheme: "NetworkShareMounter",
export_method: "development"
)
commonTasks
desc "Create DMG image"
dmg(
path: "Network Share Mounter.app",
output_path: "Network Share Mounter.dmg",
path: "build/Network Share Mounter.app",
output_path: "build/NetworkShareMounter.dmg",
volume_name: "NetworkShareMounter"
)
#gitlab_release()
# notarize(
# package: app_path, # Path to package to notarize, e.g. .app bundle or disk image
# bundle_id: bundle_id # Not required for .app bundles, bundle identifier to uniquely identify the package.
# )
desc "Notarize App"
notarize(
package: "build/NetworkShareMounter.dmg",
bundle_id: "de.fau.rrze.NetworkShareMounter",
username: "rrze-apple-entwickler@fau.de"
)
end
# generates the command-line networkShareMounter app
......
......@@ -2,7 +2,7 @@ git_url("https://gitlab.rrze.fau.de/faumac/fastlanecerts.git")
storage_mode("git")
app_identifier("de.fau.rrze.NetworkShareMounter")
type("adhoc") # The default type, can be: appstore, adhoc, enterprise or development
type("development") # The default type, can be: appstore, adhoc, enterprise or development
#additional_cert_types("mac_installer_distribution")
# app_identifier(["tools.fastlane.app", "tools.fastlane.app2"])
......
......@@ -246,17 +246,23 @@
TargetAttributes = {
D60FA51B1E7FBE1300D9B5A5 = {
CreatedOnToolsVersion = 8.0;
DevelopmentTeam = C8F68RFW4L;
LastSwiftMigration = 1030;
ProvisioningStyle = Manual;
};
F79B1594274E722000C322A8 = {
CreatedOnToolsVersion = 13.2;
};
F79B15A4274E722100C322A8 = {
CreatedOnToolsVersion = 13.2;
DevelopmentTeam = C8F68RFW4L;
ProvisioningStyle = Manual;
TestTargetID = F79B1594274E722000C322A8;
};
F79B15AE274E722100C322A8 = {
CreatedOnToolsVersion = 13.2;
DevelopmentTeam = C8F68RFW4L;
ProvisioningStyle = Manual;
TestTargetID = F79B1594274E722000C322A8;
};
};
......@@ -527,7 +533,7 @@
CLANG_USE_OPTIMIZATION_PROFILE = YES;
CODE_SIGN_ENTITLEMENTS = networkShareMounter/networkShareMounter.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CODE_SIGN_STYLE = Manual;
DEVELOPMENT_TEAM = C8F68RFW4L;
INFOPLIST_FILE = "$(SRCROOT)/networkShareMounter/de.uni-erlangen.rrze.networkShareMounter.plist";
INSTALL_PATH = "/Library/Application Support/FAUmac/bin";
......@@ -543,7 +549,7 @@
CLANG_USE_OPTIMIZATION_PROFILE = YES;
CODE_SIGN_ENTITLEMENTS = networkShareMounter/networkShareMounter.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CODE_SIGN_STYLE = Manual;
DEVELOPMENT_TEAM = C8F68RFW4L;
INFOPLIST_FILE = "$(SRCROOT)/networkShareMounter/de.uni-erlangen.rrze.networkShareMounter.plist";
INSTALL_PATH = "/Library/Application Support/FAUmac/bin";
......@@ -650,7 +656,7 @@
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 14;
DEVELOPMENT_TEAM = C8F68RFW4L;
GCC_C_LANGUAGE_STANDARD = gnu11;
......@@ -681,7 +687,7 @@
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 14;
DEVELOPMENT_TEAM = C8F68RFW4L;
GCC_C_LANGUAGE_STANDARD = gnu11;
......@@ -708,7 +714,7 @@
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 14;
DEVELOPMENT_TEAM = C8F68RFW4L;
GCC_C_LANGUAGE_STANDARD = gnu11;
......@@ -738,7 +744,7 @@
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 14;
DEVELOPMENT_TEAM = C8F68RFW4L;
GCC_C_LANGUAGE_STANDARD = gnu11;
......
......@@ -28,6 +28,26 @@
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "F79B15A4274E722100C322A8"
BuildableName = "Network Share MounterTests.xctest"
BlueprintName = "Network Share MounterTests"
ReferencedContainer = "container:networkShareMounter.xcodeproj">
</BuildableReference>
</TestableReference>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "F79B15AE274E722100C322A8"
BuildableName = "Network Share MounterUITests.xctest"
BlueprintName = "Network Share MounterUITests"
ReferencedContainer = "container:networkShareMounter.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
</TestAction>
<LaunchAction
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment