diff --git a/src/locales/en.json b/src/locales/en.json index b008d2e6..c648bec6 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -1,7 +1,7 @@ { "p4": { "description1": { - "string": "Converts Scratch projects into HTML files, zip archives, or executable programs for Windows, macOS, and Linux." + "string": "Converts Scratch projects into HTML files, zip archives, or executable programs for Windows, macOS, Linux, and Android." }, "description2": { "string": "If you just want an easy way to embed a project into your website, you may be interested in {embedding}." @@ -408,6 +408,9 @@ "string": "{type} Linux application (64-bit only)", "context": "type will become something like 'NW.js' or 'Electron'. Do not translate 'Linux'." }, + "application-android": { + "string": "Android app (Highly experimental)" + }, "otherEnvironments": { "string": "Other environments (Click to open)", "context": "Text that can be clicked to expand list of environments to include some unrecommended ones." diff --git a/src/p4/P4.svelte b/src/p4/P4.svelte index b33461a1..3a7d55aa 100644 --- a/src/p4/P4.svelte +++ b/src/p4/P4.svelte @@ -84,7 +84,7 @@ :global([theme="dark"] .is-not-safari select:hover) { border-color: #bbb; } - :global(p), :global(h1), :global(h2), :global(h3) { + :global(p), :global(pre), :global(h1), :global(h2), :global(h3) { margin: 12px 0; } :global(summary) { diff --git a/src/p4/PackagerOptions.svelte b/src/p4/PackagerOptions.svelte index 9fe668a0..e8658115 100644 --- a/src/p4/PackagerOptions.svelte +++ b/src/p4/PackagerOptions.svelte @@ -232,8 +232,9 @@ font-weight: bold; background: yellow; color: black; - padding: 10px; - border-radius: 10px; + padding: 12px; + border-radius: 12px; + margin: 12px 0; } .buttons { display: flex; @@ -709,6 +710,13 @@ +
+ +
+
{$_('options.otherEnvironments')}

{$_('options.otherEnvironmentsHelp')}

@@ -843,6 +851,126 @@

NW.js support is deprecated and may be removed in the future. Use Electron instead if possible.

For further help and steps, see NW.js Documentation.

{/if} + {:else if $options.target === 'android'} +

Android

+ +
+ Unlike the other environments, Android support is not fully automated. You must manually create an app. This section will try to guide you through the process. +
+ +

This section assumes you have full access (including adminstrator/root) to a Windows, macOS, or Linux computer.

+

Parts of this section may be generated by various options selected above.

+ +

Install Android Studio

+

Install Android Studio.

+

This is quite large and may take a while.

+ +

Create a new project

+

Create a new project in Android Studio.

+ + +

Create assets folder

+

In the sidebar on the left, right click on "app", then select "New" > "Folder" > "Assets folder". Use the default settings.

+ +

Prepare project

+

+