winsonOTP
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note No publishing access yet

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.

      Your account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

      Your team account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

      Explore these features while you wait
      Complete general settings
      Bookmark and like published notes
      Write a few more notes
      Complete general settings
      Write a few more notes
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note No publishing access yet

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.

    Your account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

    Your team account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

    Explore these features while you wait
    Complete general settings
    Bookmark and like published notes
    Write a few more notes
    Complete general settings
    Write a few more notes
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    # 用 Scratch 製作應用程式?帶您將 Scratch 3.0 專案轉換為 apk 安裝檔! :::success 我們總是會在應用程式商店看到各式各樣、玲瑯滿目的應用程式(APP),大部分的APP是通過繁複的程式語言來打造。但是,簡單而易懂的Scratch竟然也能製作APP?!筆者將帶您將 Scratch 的 sb3 檔案,轉換為 Android 的 apk 安裝檔案。 ::: ## 前言 這篇文章,將會帶著各位將 Scratch 3.0 的專案,也就是 `sb3` 檔案,轉換為安卓手機所支援的安裝檔案 `apk`。Scratch 3.0 的專案檔案,若分享予他人,他人便會同時得到 **程式碼** 與 **可運行的內容** ,此外必須使用 Scratch 編輯器才能開啟,既不適合分享又不適合啟動。而倘若我們將Scratch檔案轉換為apk安裝檔,我們便能輕鬆的用手機來啟動程式,也無法檢視到程式的原始碼。 ![](https://i.imgur.com/N5yH70n.png) ## 實際操作 接下來,我們言歸正傳,開始進行轉換的操作吧! ### 第一步:將 Scratch 專案轉換為 HTML 格式 首先,由於筆者沒有找到較為安全可靠的直接轉換方式,因此此篇文章會通過如下的轉換步驟來進行:`sb3` -> `html` -> `apk` 。因此,我們要先將專案程式轉換為HTML格式 這邊我們使用 TurboWarp 進行轉換 #### TurboWarp Packager ![](https://i.imgur.com/OuIJYVX.png) - 可將專案匯出為多種格式的檔案 - 頁面底部可切換為多國語言,包含繁體中文 - TurboWarp 網頁子網域 - 並非由Scratch官方營運或開發 - https://packager.turbowarp.org/ 使用上的詳細教學可以查看我的另一篇文章: #### 讓精心製作的 Scratch 3.0 專案轉換為 HTML 網頁,再也不怕透漏程式碼! - 這篇文章將指導您將Scratch的專案 (.sb3) 轉換為HTML程式碼,不但可以在不分享程式碼的情況下分享專案,更可以在未安裝或開啟Scratch編輯器的情況下使用! - https://hackmd.io/@winsonOTP/scratch-to-html ### 第二步:安裝 Website 2 APK 軟體 接下來要安裝一個軟體,用於將 `html` 檔案轉換為 `apk` 檔案。 #### Website 2 APK ![](https://i.imgur.com/3Oq8TY6.png) - 轉換 html 檔案為 apk - 可以調整各種APP的設定 - 無廣告且轉換快速 - https://websitetoapk.com/ 進入網頁後點按下載按鈕。 ![](https://i.imgur.com/x4Mi5EH.png) 點按 Free Download 進行免費的下載(亦可[點此](https://github.com/praveshagrawal/Website-2-APK-Builder/releases/download/v5.1.0.1/Website.2.APK.Builder.v5.1.0.1.Installer.exe)直接下載)。 ![](https://i.imgur.com/bQksema.png) 下載完成安裝檔後執行,開始安裝後首先出現的會是條款的顯示,須同意後點擊 Next。 ![](https://i.imgur.com/HV9su2V.png) 接著會詢問是否要新增桌面捷徑,可依照個人喜好設置。 ![](https://i.imgur.com/2uHtrQf.png) 接著會和您確定安裝的設置,沒問題就可以繼續安裝。 ![](https://i.imgur.com/N3i1Ysb.png) 安裝完成會出現此畫面,若要直接開啟可以勾選選項後點按Finish。 ![](https://i.imgur.com/Oth4IZv.png) 這樣就安裝好囉! ### 第三步:設置輸出時的設定 接著,讓我們開始使用 Website 2 APK 轉換 html 檔案為 apk 檔案。 開啟剛剛安裝好的 Website 2 APK,你將會看到這個畫面。 ![](https://i.imgur.com/xxLvMgC.png) 您需要先將這個設置勾選為左側的選項,代表您會使用本地的 html 檔案來進行轉換。 ![](https://i.imgur.com/GQm9g6q.png) 接著請在左下方的這個設置調整您的檔案路徑,也可以通過右邊的按鈕直接進行選擇 ![](https://i.imgur.com/zXrWQZN.png) > 註:您需要將 html 檔案放置到一個專屬的資料夾,並且將 html 檔案命名為 `index.html` ,才能順利讀取。 此時,您已經調整好了 html 檔案的抓取路徑,接下來將逐一介紹主要的設置的用途與意義: APP標題: ![](https://i.imgur.com/DNvC5yT.png) 輸出路徑: ![](https://i.imgur.com/PC6Hbl9.png) 分享文字與離開前的確認文字: ![](https://i.imgur.com/UURqEiA.png) 右側勾選的欄位是一些基礎或進階的設定,建議不要調整進階的設定,避免影響正常運行,尤其是這一個 ![](https://i.imgur.com/zNDmsHw.png) 若取消勾選,可能會導致專案無法運行。 其他設定在此由於篇幅限制先不進行介紹,歡迎自行摸索嘗試! ### 第四步:將檔案進行輸出 接下來請點擊右下角的建立APK按鈕,進行匯出的動作。 ![](https://i.imgur.com/9AXue2Q.png) 您會看到軟體出現的確認窗口,點按確定即可繼續。 ![](https://i.imgur.com/ygQt23j.png) 接著軟體會開始進行檔案的輸出,輸出後會出現完成的字樣。 ![](https://i.imgur.com/FqfKXN8.png) ![](https://i.imgur.com/rVRhARS.png) ![](https://i.imgur.com/AZ1iCZz.png) 您的檔案此時已經成功輸出到您設置的 Output Directory 囉! 可以將檔案傳輸到手機進行安裝,也可以分享給您的親朋好友哦! ## 結語 這篇文章指導各位進行 sb3 -> html -> apk 的轉換,感謝各位的閱讀,希望您閱讀此篇文章後能夠順利的進行轉換! 謝謝您閱讀完畢這篇文章,之後還會持續推出更多好文給大家,文章編撰不易,每一步驟皆親自實踐避免出錯,請務必多多支持,多多追蹤與分享! ###### tags: `Scratch`

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password
    or
    Sign in via Facebook Sign in via X(Twitter) Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    By signing in, you agree to our terms of service.

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully