DaidoujiChen / Dai-Hentai

一個普通的看漫畫 App
1.23k stars 159 forks source link

BITRISE -> APPETIZE #80

Open DaidoujiChen opened 7 years ago

DaidoujiChen commented 7 years ago

記錄一下 script, 參考 https://github.com/bitrise-io/bitrise-contrib/issues/6 其中 filename 的部分被我直接寫死了 o.o 因為不知道為什麼他會砍掉我的 Dai- 總之下面這段是編譯 simlator 用檔案的方式

    - script@1.1.3:
        inputs:
        - content: |-
            #!/bin/bash

            xcodebuild -showsdks

            echo "Schema is $BITRISE_SCHEME"
            echo "Workspace is $BITRISE_PROJECT_PATH"

            app_folder=`xcodebuild \
              -scheme $BITRISE_SCHEME \
              -workspace $BITRISE_PROJECT_PATH \
              -configuration Debug \
              -arch i386 \
              -sdk iphonesimulator \
              -showBuildSettings | grep -m 1 BUILT_PRODUCTS_DIR | grep -oEi "\/.*"`

            xcodebuild \
              -scheme $BITRISE_SCHEME \
              -workspace $BITRISE_PROJECT_PATH \
              -configuration Debug \
              -arch i386 \
              -sdk iphonesimulator

            app_filepath="$app_folder/Dai-Hentai.app"

            envman add --key BITRISE_SIMULATOR_IPA_PATH --value "$app_filepath"

            envman print
        - working_dir: "$BITRISE_SOURCE_DIR"
carry0987 commented 7 years ago

哦哦哦哦哦哦哦哦哦 -- By Carry

carry0987 commented 7 years ago

砍掉Dai-? -- By Carry

DaidoujiChen commented 7 years ago

就是比如說 build 出來的檔案名稱是 Dai-Hentai.app 用原本的 script 會變成 Hentai.app O3O

kinosang commented 7 years ago

Bitrise 支援自動部署 ipa 到 GitHub Releases

對於非 tag 的 commit,可以通過設定檔停用 Bitrise 的部署功能(deploy only tag)

另建議 README 中的 Bitrise badge 連接到 Bitrise build 頁面,沒記錯的話頁面上會有到 ipa 檔的連接。

DaidoujiChen commented 7 years ago

@kinosang

因為感覺還沒有很正式, 所以還沒有要放到 release 頁的說, 先 build 版本出來是想說是不是有人會想試玩一下最新的進度醬

>w<"