From 1a605358a6a1a3a7b40dc75688637a4130f6768d Mon Sep 17 00:00:00 2001 From: Botspot Date: Wed, 1 Sep 2021 22:20:57 -0500 Subject: [PATCH] Add Windows Flasher app --- apps/Windows Flasher/credits | 1 + apps/Windows Flasher/description | 16 ++++++++++++++++ apps/Windows Flasher/icon-24.png | Bin 0 -> 1560 bytes apps/Windows Flasher/icon-64.png | Bin 0 -> 2630 bytes apps/Windows Flasher/install | 29 +++++++++++++++++++++++++++++ apps/Windows Flasher/uninstall | 21 +++++++++++++++++++++ apps/Windows Flasher/website | 1 + data/categories/structure | 3 ++- 8 files changed, 70 insertions(+), 1 deletion(-) create mode 100644 apps/Windows Flasher/credits create mode 100644 apps/Windows Flasher/description create mode 100644 apps/Windows Flasher/icon-24.png create mode 100644 apps/Windows Flasher/icon-64.png create mode 100755 apps/Windows Flasher/install create mode 100755 apps/Windows Flasher/uninstall create mode 100644 apps/Windows Flasher/website diff --git a/apps/Windows Flasher/credits b/apps/Windows Flasher/credits new file mode 100644 index 0000000..729fb33 --- /dev/null +++ b/apps/Windows Flasher/credits @@ -0,0 +1 @@ +Botspot diff --git a/apps/Windows Flasher/description b/apps/Windows Flasher/description new file mode 100644 index 0000000..886368b --- /dev/null +++ b/apps/Windows Flasher/description @@ -0,0 +1,16 @@ +Install Windows 10 or Windows 11 on a Raspberry Pi SD card. +This tool is a 100% legal way to use any Debian or Ubuntu Linux operating system to flash a RPi's SD card with the necessary files to run Windows 10 or 11. + +Usage is simple: +- Choose an operating system version. (Windows 11, Windows 10, Custom version) +- Choose what model Pi will be running Windows. (RPi4 or RPi3) +- Choose a language. +- Choose a storage drive to flash. +- Click Flash. +It's as simple as that. WoR-flasher takes care of the rest - downloading hundreds of files from Microsoft, generating a Windows image with them, importing the custom RPi drivers, enabling the WinPE environment, and much more. When finished, WoR-flasher will tell you exactly what to do next. + +To run: Menu -> Accessories -> WoR-Flasher +To run the graphical interface in a terminal: ~/wor-flasher/install-wor-gui.sh +To run the command-line interface in a terminal: ~/wor-flasher/install-wor.sh + +If you encounter problems, we recommend you run WoR-flasher in a terminal to catch any errors. diff --git a/apps/Windows Flasher/icon-24.png b/apps/Windows Flasher/icon-24.png new file mode 100644 index 0000000000000000000000000000000000000000..ce4d4de9e26aba7bf19411696802aac16de23175 GIT binary patch literal 1560 zcmV+z2Iu*SP)(!A(mNr)Px>jVi zul1py)L-aGmL+enwo`0d!3HGGnKQ%T;gGN2Y)dX4RAVJ-p^Mo5>yJNeOUu~)?9Iu% zyi!a3;jvP;kDu&jHh@+SldLL6%vPN?sCZ2F_c2qT!n&qH(?xk2PGtAA{WR>?HFnZ560!B=cA zo2HB~-fT9LjWaRT0@E-IF=3c71PD~`iiU4dQNKDc%v3EZT{hYjR{PBpvua}7K1?Am z2il^Zbkms#ljAKfF`W>607^07%2kzh!KJ_|Q@JXd8nAT0mP^x^dTCBj59TKUAd~t0 zd@gxDpzG${x;c-o?{=laH>x(PN~m{hNb}X`exuTV;tue^xzXtf-`4VEQfjMDKwHZI zEu*VS@y1kl#$*TWTp!A0F*c#rcb|13&8GhT$U)8EAKM@#iii&?x??n=G$Q^F#ETrV zht7@E>F!x*5V7zH6jUsE!!LrRh*DGK9M(YRe4%hzENp97+33n-rh>r0;&jyWdGxWU z8(s+YaTeP!GSON_%y9!sQx|z86lj{b9^xcWh$K$JRVbL}_y_-)5vx{gt^a=CNh5$` zjLJgdlaM4xB|Jev=n}*onIPY1fuO$cxI!G*eyucYeV!e&wpmGFOkFDJG-W8@VS*Ck zO2pNap;S1&1e?nlWYw;AO9Rfl-Cway`@#EGHrZ-FIAsJL*y!-|_AeLgqxrW&Ly4Jf zwR+iC^%hzel-2h<$Lq(h^;Tu~GY#{oJ5JVdjkYgGHZOGA<}g<6PHmfC_)b-I-!p#Z zi~cRsM{C+)KJgra_gb{SwzgEG6<=VX^aKGIT3pP_Iv-$QWa;n-yT+*wAt`VyE;ekX>Dn!UA6=9H`P2G=}_mb3mC$Z$kLcwW@UoaU-5}NwLM;;9XO5w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9O$AvTwh|1<1tVn~N{~7)pmJv?>{sU+HNKLoMF0tOyA+jLaP^N>R zL|H3Cz8})qT^r_$UF0uc*d9B8Sqq3ZS2FdnA7dxTfY6H zDMdBS{^F&rH&}GIw$Do7m#+j*|71UG+LzL0w(DkTF>G-ctm*jmrw5M2!cU6}RN&DV zX@afb{k_{$qWJMlAm(OXUQ6vK>Hubik4(-4{lVpR%>w+h119X9Sr|pC^BErloKKXZ z?Dj!R?JzwEPs)5H=mk$_)`QtE+ME1RNQpL3tVdu0G!W5c9a!2$R-UI!ghI1}wyDG4 z#_t*t%)MfsQ1gBT&up$DF2u|cC%8a>9YGfVU$iHt66JvtNJ}Cii`DvW_RMx#YJXAp z@cWM?0I5~ixchdr$1K5+{h|E@2S|7$1m=$*66Vj;zM|C!75w2Y5SnD`2|AG10^w*0 z>9Epz-kvLt}xaFEbqY01AC!UX9E7~ zQkUk&*s+nUbb+znukL`m4xPnM2Ep#vq{tZWaHAEnkqcDKJ1KYvcr#^Z<3!PfOtvU=jDyv@B)qKQ|J)toTrx8Qgu~EO^pt#8aiZrR;dfTKv*`Z=2rz#snvus;dDKVN^o*`AwOz}_V60Up?jfTve& zV6zhm7vR77WV6/dev/null 2>&1 ; pwd -P )")")" + +function error { + echo -e "\\e[91m$1\\e[39m" + exit 1 +} + +echo "Installing dependencies..." +"${DIRECTORY}/pkg-install" "yad aria2 cabextract wimtools chntpw genisoimage exfat-fuse exfat-utils wget" "$(dirname "$0")" || exit 1 + +echo "Downloading repository..." +rm -rf ~/wor-flasher || error "Failed to first remove ~/wor-flasher folder!" +git clone https://github.com/Botspot/wor-flasher || error "Failed to download wor-flasher repository!" + +if [ -d ~/wor-flasher-files ];then + echo -e "\nDuring use, WoR-flasher downloads all files to $HOME/wor-flasher-files\nThis folder exists right now.\nIf WoR-flasher is malfunctioning, deleting this folder may help.\n" +fi + +echo "Creating menu button..." +echo "[Desktop Entry] +Type=Application +Name=WoR Flasher +Comment=WoR Flasher - Flash Windows 10 or 11 to your Raspberry Pi +Categories=Utility; +Exec=$HOME/wor-flasher/install-wor-gui.sh +Icon=$HOME/wor-flasher/logo.png +StartupNotify=true" > ~/.local/share/applications/wor-flasher.desktop diff --git a/apps/Windows Flasher/uninstall b/apps/Windows Flasher/uninstall new file mode 100755 index 0000000..8185e9f --- /dev/null +++ b/apps/Windows Flasher/uninstall @@ -0,0 +1,21 @@ +#!/bin/bash + +DIRECTORY="$(dirname "$(dirname "$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )")")" + +function error { + echo -e "\\e[91m$1\\e[39m" + exit 1 +} + +echo "Removing dependencies..." +"${DIRECTORY}/purge-installed" "$(dirname "$0")" || exit 1 + +echo "Removing $HOME/wor-flasher folder..." +rm -rf ~/wor-flasher || error "Failed to remove ~/wor-flasher folder!" + +echo "Removing menu button..." +rm -f ~/.local/share/applications/wor-flasher.desktop + +if [ -d ~/wor-flasher-files ];then + echo -e "\nDuring use, WoR-flasher downloads all files to $HOME/wor-flasher-files\nThis folder exists right now.\nFeel free to delete that folder to save disk space.\n" +fi diff --git a/apps/Windows Flasher/website b/apps/Windows Flasher/website new file mode 100644 index 0000000..baeee32 --- /dev/null +++ b/apps/Windows Flasher/website @@ -0,0 +1 @@ +https://github.com/Botspot/wor-flasher diff --git a/data/categories/structure b/data/categories/structure index 8d0b67d..e536589 100644 --- a/data/categories/structure +++ b/data/categories/structure @@ -1,4 +1,3 @@ -AdventButWrong|Games All Is Well|Tools AndroidBuddy|Tools Angry IP scanner|Internet @@ -110,8 +109,10 @@ Web Apps|Internet Wechat|Internet Whatsapp|Internet Windows 10 Theme|Eyecandy +Windows Flasher|Tools Windows Screensavers|Eyecandy Wine (x86)|Tools +WorldPainter| WPS Office|Editors YouTubuddy|Multimedia Zoom|Internet