-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from banjun/archive
fastlane archive to archive & notarize
- Loading branch information
Showing
6 changed files
with
218 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,3 +27,5 @@ xcuserdata/ | |
|
||
## swift package generate-xcodeproj | ||
/*.xcodeproj/ | ||
|
||
/fastlane/report.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ | |
source "https://rubygems.org" | ||
|
||
gem "cocoapods" | ||
gem "fastlane" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
class NotarizeCLIAction < Fastlane::Actions::NotarizeAction | ||
def self.stape | ||
end | ||
end | ||
|
||
default_platform(:mac) | ||
|
||
platform :mac do | ||
lane :archive do | ||
spm(configuration: 'release', build_path: '.build') | ||
app = '.build/release/SwiftBeaker' | ||
zipped = Pathname(app).sub_ext(".zip").to_s | ||
sh("codesign -f -s 'Developer ID' --options runtime --timestamp ../#{app}") | ||
zip(path: app, output_path: zipped) | ||
notarize_cli(package: zipped, bundle_id: 'jp.banjun.SwiftBeaker', print_log: true, verbose: true) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
fastlane documentation | ||
================ | ||
# Installation | ||
|
||
Make sure you have the latest version of the Xcode command line tools installed: | ||
|
||
``` | ||
xcode-select --install | ||
``` | ||
|
||
Install _fastlane_ using | ||
``` | ||
[sudo] gem install fastlane -NV | ||
``` | ||
or alternatively using `brew cask install fastlane` | ||
|
||
# Available Actions | ||
## Mac | ||
### mac archive | ||
``` | ||
fastlane mac archive | ||
``` | ||
|
||
|
||
---- | ||
|
||
This README.md is auto-generated and will be re-generated every time [fastlane](https://fastlane.tools) is run. | ||
More information about fastlane can be found on [fastlane.tools](https://fastlane.tools). | ||
The documentation of fastlane can be found on [docs.fastlane.tools](https://docs.fastlane.tools). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
module Fastlane | ||
module Actions | ||
module SharedValues | ||
end | ||
|
||
# NOTE: based on copy of https://github.com/fastlane/fastlane/blob/master/fastlane/lib/fastlane/actions/notarize.rb | ||
class NotarizeCliAction < NotarizeAction | ||
def self.staple(package_path, verbose) | ||
# a single binary cli cannot be stapled so far: | ||
# The staple and validate action failed! Error 73. | ||
UI.important "Skipping staple. The binary is notarized and can be distributed but not stapled: #{package_path}" | ||
end | ||
end | ||
end | ||
end |