BitriseでmacOSアプリをビルドする / Build macOS apps with Bitrise

619fccc61ef955ccf39bfa41df527042?s=47 Nobuhiro Ito
September 03, 2019

BitriseでmacOSアプリをビルドする / Build macOS apps with Bitrise

2019/09/03(Thr) Bitrise User Group #2

619fccc61ef955ccf39bfa41df527042?s=128

Nobuhiro Ito

September 03, 2019
Tweet

Transcript

  1. #JUSJTFͰ NBD04ΞϓϦΛϏϧυ͢Δ /PCVIJSP*UP!JTFFCJ #JUSJTF6TFS(SPVQ

  2. ࣗݾ঺հ w ҏ੎γϯҏ౻৳༟!JTFFCJ w גࣜձࣾϐϦΧΤϯδχΞ w ͝Έर͍4/4ϐϦΧJ04൛ͷ։ൃ w ਫதϚΠΫϩϓϥενοΫௐࠪ૷ஔͷ։ൃ

  3. #JUSJTFͰNBD04ΞϓϦΛϏϧυͰ͖ͳ͍͔ w ݸਓ։ൃͷNBD04ΞϓϦ "QQ4UPSF֎഑෍ ͷϏϧυΛ
 7JTVBM4UVEJP"QQ$FOUFSͰ͍ͯͨ͠ w ձࣾͷΞϓϦΛ#JUSJTFͰϏϧυͰ͍ͯ͠Δ w ʮ#JUSJTFɺϞόΠϧ͚ͩͬΆ͍͚Ͳɺ


    ɹJ04Λແཧ໼ཧ͍ͬͨ͡ΒNBD04΋͍͚ΔΜͪΌ͏͔ʙʯ
  4. ༨༟ͩͬͨ w ͪΌΜͱςϯϓϨʔτ͕͋Δ
 σβΠϯ่ΕͯΔ͚Ͳ

  5. %FWFMPQFS*%ূ໌ॻ w "QQ4UPSFͷ֎Ͱ഑෍͢ΔNBD04ΞϓϦΛॺ໊͢Δূ໌ॻ w J04ͱҧ͍ɺϓϩϏδϣχϯάϓϩϑΝΠϧ͸ඞͣ͠΋͍Βͳ͍ɻ
 ϓογϡ௨஌Λ࢖͏ͱ͖ͳͲ͸ඞཁɻ w #JUSJTFͰϏϧυ͢Δͱ͖͸ɺ։ൃ༻ͷ.BD%FWFMPQFSূ໌ॻ΋ඞཁʁ
 ͋ͬͨ΄͏͕τϥϒϧগͳ͍ͱࢥ͏

  6. #JUSJTF্Ͱͷઃఆ w $PEF4JHOJOHͷλϒʹొ࿥
 J04ͱಉ͡

  7. #JUSJTF্Ͱͷઃఆ w Ϗϧυͷεςοϓ͸
 9DPEF"SDIJWFGPS.BD͕͋Δ
 ͋ͱ͸J04ͱಉ͡

  8. "QQ/PUBSJ[BUJPO w "QQ4UPSF֎഑෍ͷΞϓϦͷόΠφϦΛ
 Ұ౓"QQMFʹૹͬͯূ໌ΛऔΔ࢓૊Έ w "QQMFͰϚϧ΢ΣΞεΩϟϯͳͲ͕ͳ͞ΕΔ w $BUBMJOB͔ΒඞਢԽͰରԠ଴ͬͨͳ͠
 (BUF,FFQFSͰ͸͔͡ΕΔΑ͏ʹͳΔ

  9. #!/usr/bin/env bash -xe primary_bundle_identifier='net.iseteki.TransporterPad' xcrun altool --notarize-app \
 --primary-bundle-id $primary_bundle_identifier

    \
 --username $APPLE_ID --password $APPLE_ID_PASSWORD \
 --file $BITRISE_EXPORTED_FILE_PATH w ຊ౰͸͜ͷ͋ͱ4UBQMFͱ͍͏ॲཧ΋΍ͬͨ΄͏͕Α͍͕ɺ׬ྃ·Ͱʹ͕͔͔࣌ؒΔͷͰͳ͠ɻ
 ΦϑϥΠϯͰ΋(BUF,FFQFSΛ௨աͰ͖ΔΑ͏ʹͳΔ
  10. 7JTVBM4UVEJP"QQ$FOUFSͱൺ΂ͯ w "QQ$FOUFS͸ઃఆ΄΅໎Θͳͯ͘ͱΓ͋͑ͣϏϧυ͢Δͷ͸͙͢Ͱ͖Δɻ w Ṗͷྗ͕ಇ͍ͯॺ໊पΓͷϛε͕গͳ͍ w ΧελϚΠζ͕ͮ͠Β͍ छྨͷγΣϧεΫϦϓτͰ͢΂ͯ΍Δ  w

    #JUSJTF͸ࡉ͔͍ઃఆ͕͍Ζ͍ΖͰ͖Δ w ͦͷ෼ैલ௨ΓͷϋϚΓͲ͜Ζ͕͋Δ w ϫʔΫϑϩʔΛ࡞Γ΍͍͢ 4UFQ͕͍Ζ͍Ζ͋Δ
  11. ࡞͍ͬͯΔπʔϧ

  12. 5SBOTQPSUFS1BE

  13. w 64#Ͱ୺຤Λͭͳ͙ɻ w *1"ϑΝΠϧ"1,ϑΝΠϧΛ
 5SBOTQPSUFS1BEͷ΢Οϯυ΢ʹυϩοϓ͢Δ w #FBN61ϘλϯΛΫϦοΫ͢Δ

  14. w #JUSJTFͷ੒Ռ෺ϦϯΫ͔Β
 ௚઀υϥοάυϩοϓՄೳ

  15. IUUQTHJUIVCDPNJTFFCJ5SBOTQPSUFS1BE