Move all scripts to the scripts dir

This commit is contained in:
Mingshen Sun 2020-12-29 19:44:00 -08:00
parent df80d2e431
commit 52a8c4a401
No known key found for this signature in database
GPG key ID: 1F86BA2052FED3B4
5 changed files with 10 additions and 6 deletions

View file

@ -22,8 +22,8 @@ jobs:
export PATH="/usr/local/opt/go@1.14/bin:$PATH" export PATH="/usr/local/opt/go@1.14/bin:$PATH"
bundle install bundle install
bundle exec pod install bundle exec pod install
./wcarthage bootstrap --platform iOS ./scripts/wcarthage bootstrap --platform iOS
./gopenpgp_build.sh ./scripts/gopenpgp_build.sh
- name: Test - name: Test
run: bundle exec fastlane test run: bundle exec fastlane test
- name: Deploy - name: Deploy

View file

@ -47,7 +47,7 @@ For more, please read the [wiki page](https://github.com/mssun/passforios/wiki).
## Building Pass for iOS ## Building Pass for iOS
1. Install libtool, automake, cmake, carthage, cocoapods, and go: `brew install libtool automake cmake carthage cocoapods go@1.14 swiftlint swiftformat`. At the moment, the project does not build with current version of go (1.15). Use 1.14 1. Install libtool, automake, cmake, carthage, cocoapods, and go: `brew install libtool automake cmake carthage cocoapods go@1.14 swiftlint swiftformat`. At the moment, the project does not build with current version of go (1.15). Use 1.14
2. Install dependencies via Carthage in the project root directory: `./wcarthage update` then `./wcarthage bootstrap --platform iOS`. This may take some time. 2. Install dependencies via Carthage in the project root directory: `./scripts/wcarthage update` then `./scripts/wcarthage bootstrap --platform iOS`. This may take some time.
3. Run `./gopenpgp_build.sh` to build go dependencies. 3. Run `./gopenpgp_build.sh` to build go dependencies.
4. Install dependencies via CocoaPods in the project root directory: `pod install`. 4. Install dependencies via CocoaPods in the project root directory: `pod install`.
5. Open the `pass.xcworkspace` file in Xcode. 5. Open the `pass.xcworkspace` file in Xcode.

View file

@ -3,7 +3,7 @@ default_platform :ios
lane :prepare do lane :prepare do
cocoapods cocoapods
carthage(cache_builds: true, platform: "iOS") carthage(cache_builds: true, platform: "iOS")
sh "./gopenpgp_build.sh" sh "./scripts/gopenpgp_build.sh"
end end
lane :reset_build_number do lane :reset_build_number do
@ -80,7 +80,9 @@ platform :ios do
timeout: 3600, timeout: 3600,
add_to_search_list: true add_to_search_list: true
) )
match_appstore_beta if is_ci?
match_appstore_beta
end
increment_build_number( increment_build_number(
build_number: latest_testflight_build_number( build_number: latest_testflight_build_number(
version: get_version_number(target: "pass"), version: get_version_number(target: "pass"),
@ -125,7 +127,9 @@ platform :ios do
timeout: 3600, timeout: 3600,
add_to_search_list: true add_to_search_list: true
) )
match_appstore if is_ci?
match_appstore
end
increment_build_number( increment_build_number(
build_number: latest_testflight_build_number( build_number: latest_testflight_build_number(
version: get_version_number(target: "pass"), version: get_version_number(target: "pass"),