###### tags: `MAUI + Blazor` # MAUI + Blazor (.Net6.0) 快速發佈安卓安裝檔 ## 生成安卓安裝檔  先把模式從debug改成release  點選專案後選擇發佈  編譯器會開始打包, 結果如上圖  點選散發  點選臨機操作就會生成aab檔案於本機, 但是安裝還是需要上傳至PlayStore 如果選擇發佈Google Play需要獲得開發人員資格  如果沒有創建過, 點選新增  輸入必須要的資訊, 按下建立 建立後選擇剛剛創好的金鑰, 按下另存新檔  輸入金鑰的密碼 就會生成一個.aab 檔案 不是APK 根據網路說明 > Google 宣布從 8 月開始,Google Play 商店將要求開發者使用 Android App Bundle(AAB)開發新應用,將取代 APK 為標準應用程式格式。< ## 那要如何安裝aab檔呢 上傳之後去PlayStore安裝 ## 如何生成一個APK檔 打開PowerShell 輸入 `dotnet publish -f:net6.0-android -c:Release /p:AndroidSigningKeyPass=mypassword /p:AndroidSigningStorePass=mypassword` mypassword要改成金鑰密碼  跑完之後如上圖  到bin的路徑下就能找到APK檔案 如上圖 把這個APK傳給使用者就可以直接安裝了 # IOS 發佈教學連結 因為我沒有IOS開發者資格, 所以請參考以下連結 [微軟官方教學]("https://learn.microsoft.com/zh-tw/dotnet/maui/ios/deployment/overview?view=net-maui-7.0")
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up