アプリのリリースビルドおよび配置フローの自動化

- .gitignoreにbuildディレクトリを追加し、ビルド生成物の管理を強化
- xcodebuildのビルドパスを明示指定し、成果物の出力先を統一
- releaseターゲットを追加し、アプリを~/Applicationsへ自動配置するコマンドを追加
This commit is contained in:
2025-10-26 12:23:11 +09:00
parent 62b365414a
commit 777b7a101a
2 changed files with 6 additions and 1 deletions

1
.gitignore vendored
View File

@@ -1,2 +1,3 @@
*.xcodeproj *.xcodeproj
.DS_Store .DS_Store
build

View File

@@ -5,4 +5,8 @@ all: build
generate: generate:
xcodegen generate xcodegen generate
build: 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