diff --git a/README.md b/README.md index 09551b8..7447fec 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,8 @@ The general layout of `src` is: ## Tips for forks +We strive to make the packager easy to fork for any Scratch mod, even ones that aren't based on TurboWarp. Reading this section, at least the first half, should make it much easier to do so. + **Changing Scratch internals**: If you want to change the VM/renderer/etc. used, just `npm install` or `npm link` a different scratch-vm/scratch-render/etc and rebuild. You can even install a vanilla scratch-vm and all core functionality will still work (but optional features such as interpolation, high quality pen, stage size, etc. may not work) **Deploying**: The packager is deployed as a simple static website. You can host it anywhere by just copying the `dist` folder after a build. We use GitHub Actions to deploy to GitHub Pages by running the "Deploy" workflow whenever we want to push to production (Actions > Deploy > Run workflow). This should be automatically available in forks after enabling GitHub Actions. @@ -81,6 +83,6 @@ npm run build-node-prod -Copyright (C) 2021 Thomas Weber +Copyright (C) 2021-2022 Thomas Weber This project is licensed under the GNU Lesser General Public License version 3. See COPYING and COPYING.LESSER for more information. We believe that packaging a project using the packager "makes use of an interface provided by the Library, but which is not otherwise based on the Library" diff --git a/package-lock.json b/package-lock.json index e94c5a6..5aa5160 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10266,9 +10266,9 @@ } }, "svelte": { - "version": "3.46.4", - "resolved": "https://registry.npmjs.org/svelte/-/svelte-3.46.4.tgz", - "integrity": "sha512-qKJzw6DpA33CIa+C/rGp4AUdSfii0DOTCzj/2YpSKKayw5WGSS624Et9L1nU1k2OVRS9vaENQXp2CVZNU+xvIg==", + "version": "3.46.5", + "resolved": "https://registry.npmjs.org/svelte/-/svelte-3.46.5.tgz", + "integrity": "sha512-T4txpIgYEGTkpFY2KQoqvtDmapu/suHMx0GN2zAImdJ7liEdG29P0XpjcNHnOEU1a4lLJn1WXxreobBSIGdcbQ==", "dev": true }, "svelte-dev-helper": { diff --git a/src/p4/P4.svelte b/src/p4/P4.svelte index fc03218..b33461a 100644 --- a/src/p4/P4.svelte +++ b/src/p4/P4.svelte @@ -11,7 +11,7 @@ import {progress, theme} from './stores'; import {isSupported, isSafari, isStandalone} from './environment'; import version from '../build/version-loader!'; - import {LONG_NAME, FEEDBACK_PRIMARY, FEEDBACK_SECONDARY, ACCENT_COLOR, SOURCE_CODE, WEBSITE} from '../packager/brand'; + import {APP_NAME, FEEDBACK_PRIMARY, FEEDBACK_SECONDARY, ACCENT_COLOR, SOURCE_CODE, WEBSITE} from '../packager/brand'; let projectData; @@ -26,8 +26,9 @@ let modalVisible = false; + const defaultTitle = document.title; let title = ''; - $: document.title = projectData && title ? `${title} - ${LONG_NAME}` : LONG_NAME; + $: document.title = projectData && title ? `${title} - ${APP_NAME}` : defaultTitle; const getPackagerOptionsComponent = () => import( /* webpackChunkName: "packager-options-ui" */ @@ -114,7 +115,7 @@
-

{LONG_NAME}

+

{APP_NAME}

{#if version}

{version} - Online version

{/if} diff --git a/src/p4/template.ejs b/src/p4/template.ejs index 0a199ca..a98e33b 100644 --- a/src/p4/template.ejs +++ b/src/p4/template.ejs @@ -3,9 +3,9 @@ - <% const {LONG_NAME, WEBSITE} = require('../packager/brand.js'); %> - <%= LONG_NAME %> - + <% const {APP_NAME} = require('../packager/brand.js'); %> + <%= APP_NAME %> - Convert Scratch projects to HTML, EXE, and more +