forked from MapComplete/MapComplete
Performance(android): don't include studio in android app
This commit is contained in:
parent
582ff6b6db
commit
ea000d817e
2 changed files with 17 additions and 3 deletions
|
@ -14,7 +14,11 @@ then
|
|||
tput bel
|
||||
exit 0
|
||||
fi
|
||||
|
||||
mv studio.html studiohtml
|
||||
npm run build
|
||||
mv studiohtml studio.html
|
||||
|
||||
echo '''
|
||||
import type { CapacitorConfig } from "@capacitor/cli";
|
||||
|
||||
|
@ -54,8 +58,7 @@ cp -r dist/assets/docs dist-full/assets/
|
|||
cp -r dist/assets/fonts dist-full/assets/
|
||||
cp -r dist/assets/langs dist-full/assets/
|
||||
cp -r dist/assets/layers dist-full/assets/
|
||||
# We need the assets in the layers, but not the actual layer files, which can take quite a bit of space
|
||||
rm dist-full/assets/layers/*/*.json
|
||||
|
||||
cp -r dist/assets/png dist-full/assets/
|
||||
cp -r dist/assets/svg dist-full/assets/
|
||||
cp -r dist/assets/templates dist-full/assets/
|
||||
|
@ -64,7 +67,18 @@ cp -r dist/assets/themes dist-full/assets/
|
|||
# cp dist/assets/*.js.map dist-full/assets/
|
||||
rm -rf dist-full/assets/data/nsi
|
||||
rm dist-full/assets/layers/*/*.json
|
||||
|
||||
# The license info file is compiled in
|
||||
rm dist-full/assets/*/*/*.license
|
||||
rm dist-full/**/license_info.json
|
||||
|
||||
# We need the assets in the layers, but not the actual layer files, which can take quite a bit of space
|
||||
rm dist-full/assets/layers/*/*.json
|
||||
rm dist-full/assets/generated/themes/*
|
||||
# Needed for studio, but it is not included
|
||||
rm -rf dist-full/assets/docs
|
||||
|
||||
|
||||
|
||||
# mkdir dist-full/assets/generated
|
||||
nvm use
|
||||
|
|
|
@ -214,7 +214,7 @@
|
|||
<Tr t={Translations.t.general.menu.aboutMapComplete} />
|
||||
</h3>
|
||||
|
||||
<a class="flex" href={window.location.protocol + "//" + window.location.host + "/studio.html"}>
|
||||
<a class="flex" href={$isAndroid ? "https://mapcomplete.org/studio" : window.location.protocol + "//" + window.location.host + "/studio.html"}>
|
||||
<Pencil class="mr-2 h-6 w-6" />
|
||||
<Tr t={Translations.t.general.morescreen.createYourOwnTheme} />
|
||||
</a>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue