Skip to content

Instantly share code, notes, and snippets.

@alextrical
Created December 8, 2023 22:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alextrical/448cfa822ddea4c7d9aff6e985a0b77d to your computer and use it in GitHub Desktop.
Save alextrical/448cfa822ddea4c7d9aff6e985a0b77d to your computer and use it in GitHub Desktop.
Flatpak VectricAspire
rm -r ~/.vectric
sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
sudo flatpak install flathub app/org.winehq.Wine/x86_64/stable-22.08 -y
sudo flatpak override org.winehq.Wine --filesystem=home #Grant access to home directory
wget --load-cookies /tmp/cookies.txt "https://docs.google.com/uc?export=download&confirm=$(wget --quiet --save-cookies /tmp/cookies.txt --keep-session-cookies --no-check-certificate 'https://docs.google.com/uc?export=download&id=1Pq1akvhUrlUDaivkmYEw4bgy2oSPz-dE' -O- | sed -rn 's/.*confirm=([0-9A-Za-z_]+).*/\1\n/p')&id=1Pq1akvhUrlUDaivkmYEw4bgy2oSPz-dE" -nc -O ~/Downloads/AspireV10512_Setup.exe && rm -rf /tmp/cookies.txt
wget storage.vectric.com/patches/v10_5/Aspire/patches/Aspire_patch_to_v10514.exe -nc -P ~/Downloads
wget https://raw.githubusercontent.com/alextrical/Fedora-Kinonite-Fablab-Kickstart/main/patches/Aspire10512.patch -nc -P ~/Downloads
wget https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks -nc -P ~/Downloads
chmod +x ~/Downloads/winetricks
flatpak run --env="WINEPREFIX=$HOME/.vectric" --env="WINEDEBUG=fixme-all" --command=$HOME/Downloads/winetricks org.winehq.Wine -q vcrun2010
flatpak run --env="WINEPREFIX=$HOME/.vectric" --env="WINEDEBUG=fixme-all" --command=$HOME/Downloads/winetricks org.winehq.Wine -q vcrun2012
flatpak run --env="WINEPREFIX=$HOME/.vectric" --env="WINEDEBUG=fixme-all" --command=$HOME/Downloads/winetricks org.winehq.Wine -q vcrun2015
flatpak run --env="WINEPREFIX=$HOME/.vectric" --env="WINEDEBUG=fixme-all" --command=winecfg org.winehq.Wine -v win10
flatpak run --env="WINEPREFIX=$HOME/.vectric" --env="WINEDEBUG=fixme-all" --command=wine org.winehq.Wine REG ADD "HKCU\Software\Wine\DllOverrides" /v "vcredist_vc100_x64.exe" /t REG_SZ /d "" /f
flatpak run --env="WINEPREFIX=$HOME/.vectric" --env="WINEDEBUG=fixme-all" --command=wine org.winehq.Wine REG ADD "HKCU\Software\Wine\DllOverrides" /v "vcredist_vc110_x64.exe" /t REG_SZ /d "" /f
flatpak run --env="WINEPREFIX=$HOME/.vectric" --env="WINEDEBUG=fixme-all" --command=wine org.winehq.Wine REG ADD "HKCU\Software\Wine\DllOverrides" /v "vcredist_vc140_x64.exe" /t REG_SZ /d "" /f
#flatpak run --env="WINEPREFIX=$HOME/.vectric" --env="WINEDEBUG=fixme-all" --command=wine org.winehq.Wine REG ADD "HKCU\Software\Wine\DllOverrides" /v "wininet" /t REG_SZ /d "" /f
flatpak run --env="WINEPREFIX=$HOME/.vectric" --env="WINEDEBUG=fixme-all" --command=wine org.winehq.Wine REG ADD "HKCU\Software\Wine\DllOverrides" /v "update.exe" /t REG_SZ /d "" /f
flatpak run --env="WINEPREFIX=$HOME/.vectric" --env="WINEDEBUG=fixme-all" --command=wine org.winehq.Wine ~/Downloads/AspireV10512_Setup.exe /S
flatpak run --env="WINEPREFIX=$HOME/.vectric" --env="WINEDEBUG=fixme-all" --command=wine org.winehq.Wine ~/Downloads/Aspire_patch_to_v10514.exe /S
flatpak run --env="WINEPREFIX=$HOME/.vectric" --env="WINEDEBUG=fixme-all" --command=wine org.winehq.Wine REG ADD "HKCU\Software\Vectric\AspireV10\Licence" /v "Key" /t REG_SZ /d "3PNQWA-ZPFXRX-F8HXXR-VSJ3WR-PWARC9-72IHBR-J6SZHY-H8RN6R-GGQ8IU-ABBCES" /f
flatpak run --env="WINEPREFIX=$HOME/.vectric" --env="WINEDEBUG=fixme-all" --command=wine org.winehq.Wine REG ADD "HKCU\Software\Vectric\AspireV10\Licence" /v "User" /t REG_SZ /d "Maker Space" /f
# # #diff -Naru Aspire.orig.exe Aspire.exe > Aspire10512.patch
# patch "$HOME/.vectric/drive_c/Program Files/Aspire 10.5/x64/Aspire.exe" -b < ~/Downloads/Aspire10512.patch
# # git apply ~/Downloads/Aspire10512.patch
#Run application
flatpak run --env="WINEPREFIX=$HOME/.vectric" --env="WINEDEBUG=fixme-all" --command=wine org.winehq.Wine 'C:/ProgramData/Microsoft/Windows/Start Menu/Programs/Aspire 10.5/Aspire 10.5.lnk'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment