アプリのリリースビルドおよび配置フローの自動化
- .gitignoreにbuildディレクトリを追加し、ビルド生成物の管理を強化 - xcodebuildのビルドパスを明示指定し、成果物の出力先を統一 - releaseターゲットを追加し、アプリを~/Applicationsへ自動配置するコマンドを追加
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,2 +1,3 @@
|
||||
*.xcodeproj
|
||||
.DS_Store
|
||||
build
|
||||
|
||||
6
Makefile
6
Makefile
@@ -5,4 +5,8 @@ all: build
|
||||
generate:
|
||||
xcodegen generate
|
||||
build: generate
|
||||
xcodebuild -scheme OreCalendar -destination 'platform=macOS' build
|
||||
xcodebuild -scheme OreCalendar -destination 'platform=macOS' -derivedDataPath build build
|
||||
|
||||
release: build
|
||||
rm -rf ~/Applications/OreCalendar.app ; true
|
||||
mv build/Build/Products/Release/OreCalendar.app ~/Applications/OreCalendar.app
|
||||
|
||||
Reference in New Issue
Block a user