Created
July 22, 2024 11:32
-
-
Save Mollomm1/2a15cac27e00fb53f20894d049c83e37 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "------------------------------------" | |
echo " ANURAOS TO STATIC " | |
echo "------------------------------------" | |
rm -rf static_version # remove the directory if it exist | |
mkdir static_version # create the directory | |
# move all directories | |
cp -r ./public/* ./static_version | |
cp -r ./apps ./static_version | |
cp -r ./build/* ./static_version | |
# remove useless apps | |
rm -rf ./static_version/apps/term.app ./static_version/apps/marketplace.app | |
mv ./static_version/config.json ./static_version/temp.json | |
jq ' .apps |= map(select(. != "apps/term.app" and . != "apps/marketplace.app"))' ./static_version/temp.json > ./static_version/config.json | |
rm ./static_version/temp.json | |
# hide browser | |
echo "\"use strict\";class BrowserApp extends App {}" > ./static_version/lib/coreapps/BrowserApp.js | |
echo -e "\n.appsView > .app:first-child{ display:none !important; }" >> ./static_version/bundle.css | |
# remove x86 stuff to make anura more lightweight | |
rm -rf ./static_version/x86images | |
rm -rf ./static_version/bios | |
echo -e "\n.sidebar > .sidebar-settings-item:nth-child(2), .v86{ display:none !important; }" >> ./static_version/bundle.css | |
# skip oobe | |
perl -pi -e 's/this.nextStep\(\)/{this.nextStep();anura.settings.set("x86-disabled", true);anura.settings.set("use-sw-cache", false);anura.settings.set("applist", [...anura.settings.get("applist"),"anura.ashell",]);this.nextStep();}/g' ./static_version/lib/oobe/OobeView.js | |
echo "ANURAOS TO STATIC is done, the content is in the static_version folder" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment