Skip to content

Commit

Permalink
infra: bootstrap 명령어 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
chansooo committed Jun 9, 2024
1 parent cfa59b0 commit 58c826f
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 18 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/pullRequest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ jobs:
runs-on: macos-13
steps:
- uses: actions/checkout@v3

# - uses: maxim-lobanov/setup-xcode@v1
# with:
# xcode-version: '15.4'

- name: Access Available
run: chmod +x Scripts/onboarding.sh
Expand Down
14 changes: 2 additions & 12 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,7 @@ USER_NAME = $(shell python3 Scripts/author_name.py)
CURRENT_DATE = $(shell pipenv run python Scripts/current_date.py)

bootstrap:
@curl https://mise.run | sh
@echo 'eval "$(~/.local/bin/mise activate zsh)"' >> ~/.zshrc
@echo 'export PATH="$HOME/.local/share/mise/shims:$PATH"' >> ~/.zprofile
@source ~/.zshrc
@arch -arm64 brew install pipenv
@arch -arm64 brew install fastlane
@fastlane match development --readonly
@fastlane match appstore --readonly
@mise install
@tuist install
@tuist generate
@./Scripts/bootstrap.sh

# e.g. make core name=모듈이름
core:
Expand All @@ -34,4 +24,4 @@ feature:
--author "$(USER_NAME)" \
--current-date "$(CURRENT_DATE)"

@tuist edit
@tuist edit
3 changes: 1 addition & 2 deletions Matchfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ storage_mode("git")

type("development") # The default type, can be: appstore, adhoc, enterprise or development

# app_identifier(["tools.fastlane.app", "tools.fastlane.app2"])
# username("[email protected]") # Your Apple Developer Portal username
app_identifier(["ppac.farmeme.App"])

# For all available options run `fastlane match --help`
# Remove the # in the beginning of the line to enable the other options
Expand Down
27 changes: 27 additions & 0 deletions Scripts/bootstrap.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/bin/zsh

set -e

# mise 설치
curl https://mise.run | sh

# 환경설정 추가
echo 'eval "$(~/.local/bin/mise activate zsh)"' >> ~/.zshrc
echo 'export PATH="$HOME/.local/share/mise/shims:$PATH"' >> ~/.zprofile

# zsh 다시 시작
exec zsh

# 필요한 도구 설치
arch -arm64 brew install pipenv fastlane

# fastlane 설정
fastlane match development --readonly
fastlane match appstore --readonly

# mise, tuist 설치
mise install
tuist install

# tuist generate 실행
tuist generate

0 comments on commit 58c826f

Please sign in to comment.