Google Drive OTA 紀錄

Zhi-Hong Lin
Jun 1, 2021

--

透過 OTA(Over-the-Air)的方式,將安裝檔放在 Google Drive 上供測試人員下載,此篇會介紹的流程如以下

  1. 建立 Google Drive 設定
  2. 自動上傳 ipa 至 Google Drive
  3. 透過 OTA 方式安裝 ipa

建立 Google Drive 設定

前往 API library page 建立新的專案

前往 credentials page 建立憑證,這裡選擇建立服務帳戶

選擇建立新的金鑰並下載 JSON FILE

回到 API library page 啟用 Google Drive API

fastlane 上傳檔案至 Google Drive

安裝 google_drive fastlane plugin,欄位的注意事項有以下:

  • drive_keyfile-上面所下載金鑰的 JSON 檔
  • file_id-取得 .ipa 檔案分享連結內的 file id ,例如以下連結https://drive.google.com/file/d/your file id/view?usp=sharing
  • upload_file-要上傳的檔案位置

透過 OTA 方式安裝 ipa

使用 OTA(Over-the-Air)需要有三個檔案 .ipamainfest.plistindex.html

  • .ipa上傳至 Google Drive 上,並設定分享
  • mainfest.plistindex.html上傳至 Host Website,此篇選擇的是 GitHub,可參考如何建立 Host Website

mainfest.plist

以下是透過 fastlane 輸出 mainfest.plist 的指令,欄位的注意事項有以下:

  • appURL-將google drive 取得的分享連結改成以下格式
  • displayImageURL-57x57 的圖片連結
  • fullSizeImageURL-512x512 的圖片連結

index.html

url= 的後面填入 mainfest.plist 所存放的連結

最後只要提供 Github Website 給測試人員即可安裝 ipa 到手機上

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

No responses yet

Write a response