From 5008b06fae7e00cdbe8d53af71d247ba6a7b0fce Mon Sep 17 00:00:00 2001 From: madoar Date: Sun, 11 Aug 2019 11:43:27 +0200 Subject: [PATCH] Add simple Module System for "include" (#1076) - change all scripts to use the new module system - move wine version strings to new script - add missing explicit includes - move WINE_PREFIX_DIR to new constants script - remove now unneeded globals from .eslintrc - remove unused includes from scripts - update documentation pages --- .eslintrc.yml | 46 ++----------------- .../Accessories/7-zip/Online/script.js | 2 +- .../Accessories/ImgBurn/Online/script.js | 2 +- .../Accessories/Soundplant/Online/script.js | 2 +- .../Custom/LocalInstaller/Local/script.js | 2 +- .../Custom/OnlineInstaller/Online/script.js | 2 +- .../Enterprise Architect/Local/script.js | 2 +- .../Online (Trial)/script.js | 2 +- .../Development/Notepad++/v7.2.2/script.js | 2 +- .../Local/script.js | 2 +- .../Age of Empires II HD/Steam/script.js | 4 +- .../Steam/script.js | 2 +- Applications/Games/Anno 2070/Local/script.js | 5 +- Applications/Games/Anno 2070/Uplay/script.js | 3 +- .../Games/Assassin's Creed II/Steam/script.js | 3 +- .../Assassin's Creed III/Steam/script.js | 3 +- .../Steam/script.js | 5 +- .../Steam/script.js | 4 +- .../Assassin's Creed Unity/Steam/script.js | 3 +- .../Games/Assassin's Creed/Steam/script.js | 3 +- .../Steam/script.js | 4 +- Applications/Games/Audiosurf/Steam/script.js | 2 +- Applications/Games/BRINK/Steam/script.js | 2 +- .../Steam/script.js" | 6 ++- .../Steam/script.js" | 6 ++- .../Steam/script.js" | 6 ++- .../Beyond Good and Evil/Uplay/script.js | 3 +- .../Games/BioShock/Steam (Demo)/script.js | 2 +- Applications/Games/BioShock/Steam/script.js | 2 +- Applications/Games/Black Mesa/Steam/script.js | 2 +- .../Games/Blizzard app/Online/script.js | 2 +- .../Games/Borderlands/Steam/script.js | 2 +- .../Games/Braid/Steam (Demo)/script.js | 2 +- Applications/Games/Braid/Steam/script.js | 2 +- .../Steam/script.js | 2 +- Applications/Games/CONSORTIUM/Steam/script.js | 2 +- Applications/Games/Caesar III/Local/script.js | 2 +- Applications/Games/Caesar III/Steam/script.js | 2 +- .../Steam (Demo)/script.js | 2 +- .../Call of Juarez Gunslinger/Steam/script.js | 2 +- .../Games/ChromaGun/Steam (Demo)/script.js | 2 +- Applications/Games/ChromaGun/Steam/script.js | 2 +- .../Games/Civilization V/Steam/script.js | 2 +- .../Games/Clicker Heroes/Steam/script.js | 2 +- .../Games/Cogs/Steam (Demo)/script.js | 2 +- Applications/Games/Cogs/Steam/script.js | 2 +- .../Local/script.js | 5 +- .../Steam (Demo)/script.js | 3 +- .../Consortium: The Tower/Steam/script.js | 3 +- .../Games/Crayon Physics/Online/script.js | 2 +- .../Games/DC Universe Online/Online/script.js | 2 +- .../Games/DOOM (2016)/Steam/script.js | 3 +- .../Steam/script.js | 2 +- .../Dragon Ball Xenoverse 2/Steam/script.js | 4 +- .../Dragon Ball Xenoverse/Steam/script.js | 2 +- .../Games/Druid Soccer/Online/script.js | 2 +- .../Online/script.js | 4 +- .../Games/Elite:Dangerous/Steam/script.js | 2 + Applications/Games/Enderal/Steam/script.js | 4 +- .../Games/Epic Games Launcher/Local/script.js | 3 +- .../Epic Games Launcher/Online/script.js | 3 +- .../Games/Ether One Redux/Steam/script.js | 2 +- .../Europa Universalis II/Local/script.js | 2 +- .../Steam (Demo)/script.js | 2 +- .../Europa Universalis IV/Steam/script.js | 2 +- Applications/Games/Far Cry 2/Steam/script.js | 4 +- .../Far Cry 3 - Blood Dragon/Uplay/script.js | 3 +- Applications/Games/Far Cry/Steam/script.js | 2 +- .../Games/FlatOut/Steam (Demo)/script.js | 2 +- Applications/Games/FlatOut/Steam/script.js | 2 +- .../Games/GOG Galaxy/Online/script.js | 5 +- .../Goodbye Deponia/Steam (Demo)/script.js | 2 +- .../Games/Goodbye Deponia/Steam/script.js | 2 +- .../Games/Guild Wars 2/Local/script.js | 4 +- .../Games/Guild Wars 2/Online/script.js | 4 +- .../Games/Hearthstone/Online/script.js | 4 +- .../Heroes of the Storm/Online/script.js | 4 +- .../Games/Hexcells Infinite/Steam/script.js | 2 +- .../Games/Hexcells Plus/Steam/script.js | 2 +- Applications/Games/Hexcells/Steam/script.js | 2 +- Applications/Games/Icy Tower/v1.5/script.js | 2 +- .../Steam/script.js | 2 +- .../Games/League of Legends/Online/script.js | 7 ++- .../Games/Lego Rock Raiders/Local/script.js | 8 ++-- .../Games/Mafia II/Steam (Demo)/script.js | 2 +- Applications/Games/Mafia II/Steam/script.js | 2 +- .../Online/script.js | 4 +- .../Games/Mass Effect 2/Origin/script.js | 2 +- .../Games/Mass Effect 2/Steam/script.js | 2 +- .../Games/Mass Effect/Steam/script.js | 2 +- .../Steam (Demo)/script.js | 2 +- .../Medieval II: Total War/Steam/script.js | 2 +- .../Games/Mirror's Edge/Steam/script.js | 2 +- .../Mount & Blade/Steam (Demo)/script.js | 2 +- .../Games/Mount & Blade/Steam/script.js | 2 +- .../Niko: Through The Dream/Steam/script.js | 2 +- .../Games/Origin/Local (Legacy)/script.js | 7 +-- .../Games/Origin/Online (Legacy)/script.js | 5 +- Applications/Games/Origin/Online/script.js | 3 +- .../Steam (Demo)/script.js | 2 +- .../Steam/script.js | 2 +- Applications/Games/Overwatch/Online/script.js | 4 +- .../Games/PAYDAY The Heist/Steam/script.js | 2 +- .../PC Building Simulator/Steam/script.js | 6 ++- .../Games/Prehistorik/Online/script.js | 3 +- .../Games/Prey/Steam (Demo)/script.js | 3 +- Applications/Games/Prey/Steam/script.js | 3 +- .../Online/script.js | 3 +- .../Uplay/script.js | 3 +- .../Steam (Demo)/script.js | 3 +- .../Pro Evolution Soccer 2018/Steam/script.js | 3 +- .../Q.U.B.E: Director's Cut/Steam/script.js | 2 +- .../Games/Quantum Conundrum/Steam/script.js | 2 +- .../Rayman Legends/Steam (Demo)/script.js | 4 +- .../Games/Rayman Legends/Steam/script.js | 4 +- .../Games/Rayman Origins/Uplay/script.js | 3 +- .../Games/Red Trigger/Steam/script.js | 3 +- .../Games/Resident Evil 3/Local/script.js | 2 +- Applications/Games/RimWorld/Local/script.js | 2 +- Applications/Games/RimWorld/Steam/script.js | 2 +- Applications/Games/Road Rash/Online/script.js | 2 +- .../Games/Rocksmith 2014/Steam/script.js | 5 +- Applications/Games/Rocksmith/Steam/script.js | 5 +- .../Local/script.js | 8 ++-- .../Steam/script.js | 2 +- .../STAR WARS Battlefront II/Local/script.js | 5 +- .../STAR WARS Battlefront II/Steam/script.js | 2 +- .../Steam/script.js | 2 +- .../Steam/script.js | 2 +- .../Steam/script.js | 2 +- .../Steam/script.js | 2 +- .../STAR WARS: Dark Forces/Steam/script.js | 2 +- .../Online/script.js | 6 ++- .../Scribblenauts Unlimited/Steam/script.js | 2 +- .../Steam/script.js | 2 +- .../Games/SimCity (2013)/Local/script.js | 2 +- .../Games/SimCity (2013)/Origin/script.js | 2 +- .../Games/Space Colony/Local/script.js | 5 +- .../Games/Space Colony/Steam/script.js | 4 +- .../Games/Space Engineers/Steam/script.js | 2 +- Applications/Games/Spore/Origin/script.js | 2 +- Applications/Games/Spore/Steam/script.js | 2 +- .../Games/Sprouts Adventure/Local/script.js | 2 +- .../Games/Star Craft II/Online/script.js | 2 +- .../Games/Star Trek Online/Steam/script.js | 3 +- Applications/Games/Steam/Online/script.js | 4 +- .../Steam (Demo)/script.js | 3 +- .../Styx: Shards of Darkness/Steam/script.js | 3 +- .../Subnautica Below Zero/Steam/script.js | 5 +- Applications/Games/Subnautica/Steam/script.js | 5 +- .../Super Blue Boy Planet/Steam/script.js | 2 +- .../Games/TRON RUNr/Steam (Demo)/script.js | 3 +- Applications/Games/TRON RUNr/Steam/script.js | 3 +- Applications/Games/Teenagent/GOG/script.js | 3 +- .../Games/The Crew/Steam (Demo)/script.js | 3 +- Applications/Games/The Crew/Steam/script.js | 3 +- .../Online/script.js | 6 ++- .../Local/script.js | 3 +- .../Steam/script.js | 3 +- .../Steam/script.js | 2 +- .../Games/The Room Two/Steam/script.js | 2 +- Applications/Games/The Room/Steam/script.js | 2 +- Applications/Games/The Sims 3/Local/script.js | 3 +- Applications/Games/The Sims 3/Steam/script.js | 3 +- Applications/Games/The Sims/Local/script.js | 3 +- .../Games/The Turing Test/Steam/script.js | 3 +- .../Steam/script.js | 3 +- .../Steam/script.js | 2 +- .../The Witcher 3: Wild Hunt/Steam/script.js | 4 +- .../Games/The Witness/Steam/script.js | 2 +- .../Games/Toki Tori/Steam (Demo)/script.js | 2 +- Applications/Games/Toki Tori/Steam/script.js | 2 +- .../Local (1.0->1.6)/script.js | 4 +- .../Steam (Gold)/script.js | 3 +- .../Uplay/script.js | 3 +- .../Steam (Demo)/script.js | 4 +- .../Tom Clancy's The Division/Steam/script.js | 4 +- .../Steam (Demo)/script.js | 2 +- .../Tomb Raider Anniversary/Steam/script.js | 2 +- .../Tomb Raider Legend/Steam (Demo)/script.js | 2 +- .../Games/Tomb Raider Legend/Steam/script.js | 2 +- .../Steam (Demo)/script.js | 2 +- .../Tomb Raider Underworld/Steam/script.js | 2 +- .../Local (Demo)/script.js | 3 +- .../Online (Demo)/script.js | 3 +- .../Games/Total War Rome II/Steam/script.js | 4 +- .../Steam/script.js | 2 +- .../Trackmania Turbo/Steam (Demo)/script.js | 4 +- .../Games/Trackmania Turbo/Steam/script.js | 4 +- Applications/Games/Tropico 3/Steam/script.js | 2 +- .../Games/Tropico 4/Steam (Demo)/script.js | 2 +- Applications/Games/Tropico 4/Steam/script.js | 2 +- .../Games/Unholy Heights/Steam/script.js | 4 +- Applications/Games/Uplay/Local/script.js | 3 +- Applications/Games/Uplay/Online/script.js | 4 +- .../Online/script.js | 4 +- Applications/Games/Warface/Steam/script.js | 4 +- .../Steam/script.js | 4 +- .../Games/Wildlife Park 2/Local/script.js | 2 +- .../Games/Wildlife Park 2/Steam/script.js | 2 +- .../Games/Worms Armageddon/Steam/script.js | 2 +- .../Games/Worms Reloaded/Steam/script.js | 2 +- Applications/Games/XIII/GOG/script.js | 3 +- Applications/Games/Xenon 2/Online/script.js | 3 +- Applications/Games/osu!/Online/script.js | 4 +- .../Graphics/Microsoft Paint/Online/script.js | 2 +- .../Graphics/Photofiltre/Online/script.js | 2 +- .../Internet Explorer 6.0/Online/script.js | 15 +++--- .../Internet Explorer 7.0/Online/script.js | 15 +++--- .../Internet/TeamSpeak 3/v3.0.19.4/script.js | 2 +- Applications/Internet/mIRC/v7.46/script.js | 2 +- .../Multimedia/Mp3tag/Online/script.js | 2 +- .../Adobe Acrobat Reader DC/Online/script.js | 4 +- .../Office/ElsterFormular/Online/script.js | 3 +- .../Microsoft Office 2010/Local/script.js | 4 +- .../Microsoft Office 2013/Local/script.js | 5 +- Engines/Wine/Engine/Constants/script.js | 2 + Engines/Wine/Engine/Constants/script.json | 11 +++++ Engines/Wine/Engine/Implementation/script.js | 14 +++--- Engines/Wine/Engine/Object/script.js | 18 ++------ Engines/Wine/Engine/Versions/script.js | 8 ++++ Engines/Wine/Engine/Versions/script.json | 11 +++++ Engines/Wine/Plugins/DOS support/script.js | 4 +- .../Plugins/DirectDraw renderer/script.js | 4 +- Engines/Wine/Plugins/Font smoothing/script.js | 4 +- Engines/Wine/Plugins/GLSL/script.js | 3 +- Engines/Wine/Plugins/OpenGL version/script.js | 3 +- Engines/Wine/Plugins/UseTakeFocus/script.js | 3 +- .../Wine/Plugins/Windows version/script.js | 4 +- Engines/Wine/Plugins/csmt/script.js | 3 +- Engines/Wine/Plugins/hdpi/script.js | 3 +- Engines/Wine/Plugins/managed/script.js | 3 +- .../Wine/Plugins/native application/script.js | 3 +- Engines/Wine/Plugins/nocrashdialog/script.js | 6 ++- Engines/Wine/Plugins/override DLL/script.js | 3 +- Engines/Wine/Plugins/regedit/script.js | 3 +- Engines/Wine/Plugins/register font/script.js | 3 +- Engines/Wine/Plugins/regsvr32/script.js | 2 +- Engines/Wine/Plugins/sound driver/script.js | 3 +- .../Wine/Plugins/virtual desktop/script.js | 4 +- .../Custom Installer Script/script.js | 4 +- Engines/Wine/QuickScript/GoG Script/script.js | 10 ++-- .../QuickScript/Installer Script/script.js | 11 +++-- .../Local Installer Script/script.js | 4 +- .../Online Installer Script/script.js | 7 +-- .../Wine/QuickScript/Origin Script/script.js | 11 +++-- .../Wine/QuickScript/Quick Script/script.js | 5 +- .../Wine/QuickScript/Steam Script/script.js | 14 +++--- .../Wine/QuickScript/Uplay Script/script.js | 12 ++--- Engines/Wine/QuickScript/Zip Script/script.js | 11 +++-- .../Settings/DirectDraw renderer/script.js | 5 +- .../Wine/Settings/Font smoothing/script.js | 5 +- Engines/Wine/Settings/GLSL/script.js | 5 +- Engines/Wine/Settings/UseTakeFocus/script.js | 5 +- .../Wine/Settings/always offscreen/script.js | 5 +- Engines/Wine/Settings/hdpi/script.js | 5 +- .../Settings/mouse warp override/script.js | 5 +- Engines/Wine/Settings/multisampling/script.js | 5 +- .../offscreen rendering mode/script.js | 5 +- .../render target lock mode/script.js | 5 +- .../Settings/strict draw ordering/script.js | 5 +- .../Wine/Settings/video memory size/script.js | 5 +- Engines/Wine/Shortcuts/Reader/script.js | 6 ++- Engines/Wine/Shortcuts/Wine/script.js | 4 +- Engines/Wine/Tools/Configure Wine/script.js | 4 +- .../Wine/Tools/Kill Wine Processes/script.js | 4 +- Engines/Wine/Tools/Reboot Wine/script.js | 4 +- .../Wine/Tools/Repair Wine Prefix/script.js | 4 +- .../Wine/Tools/Wine Registry Editor/script.js | 5 +- .../Wine/Tools/Wine Task Manager/script.js | 4 +- .../Wine/Tools/Wine Terminal Opener/script.js | 4 +- Engines/Wine/Tools/Wine Uninstaller/script.js | 4 +- Engines/Wine/Tools/WineConsole/script.js | 4 +- Engines/Wine/Verbs/D9VK/script.js | 10 ++-- Engines/Wine/Verbs/DXVK/script.js | 10 ++-- Engines/Wine/Verbs/FAudio/script.js | 10 ++-- Engines/Wine/Verbs/PhysX/script.js | 7 +-- Engines/Wine/Verbs/QuickTime 7.6/script.js | 6 +-- Engines/Wine/Verbs/Remove Mono/script.js | 7 +-- Engines/Wine/Verbs/Tahoma/script.js | 11 +++-- Engines/Wine/Verbs/Uplay/script.js | 6 +-- Engines/Wine/Verbs/VK9/script.js | 10 ++-- Engines/Wine/Verbs/Windows XP SP 3/script.js | 9 ++-- Engines/Wine/Verbs/adobeair/script.js | 7 +-- Engines/Wine/Verbs/amstream/script.js | 14 +++--- Engines/Wine/Verbs/atmlib/script.js | 9 ++-- Engines/Wine/Verbs/corefonts/script.js | 8 ++-- Engines/Wine/Verbs/crypt32/script.js | 5 +- Engines/Wine/Verbs/d3drm/script.js | 10 ++-- Engines/Wine/Verbs/d3dx10/script.js | 8 ++-- Engines/Wine/Verbs/d3dx11/script.js | 8 ++-- Engines/Wine/Verbs/d3dx9/script.js | 8 ++-- Engines/Wine/Verbs/devenum/script.js | 16 ++++--- Engines/Wine/Verbs/dotnet20/script.js | 7 +-- Engines/Wine/Verbs/dotnet20sp2/script.js | 15 +++--- Engines/Wine/Verbs/dotnet40/script.js | 9 ++-- Engines/Wine/Verbs/dotnet45/script.js | 9 ++-- Engines/Wine/Verbs/dotnet452/script.js | 9 ++-- Engines/Wine/Verbs/dotnet46/script.js | 9 ++-- Engines/Wine/Verbs/dotnet461/script.js | 9 ++-- Engines/Wine/Verbs/dotnet462/script.js | 9 ++-- Engines/Wine/Verbs/dotnet472/script.js | 9 ++-- Engines/Wine/Verbs/gallium9/script.js | 10 ++-- Engines/Wine/Verbs/gdiplus/script.js | 9 ++-- Engines/Wine/Verbs/luna/script.js | 10 ++-- Engines/Wine/Verbs/mfc42/script.js | 9 ++-- Engines/Wine/Verbs/msls31/script.js | 8 ++-- Engines/Wine/Verbs/mspatcha/script.js | 10 ++-- Engines/Wine/Verbs/msxml3/script.js | 13 +++--- Engines/Wine/Verbs/msxml6/script.js | 12 +++-- Engines/Wine/Verbs/quartz/script.js | 10 ++-- Engines/Wine/Verbs/sandbox/script.js | 6 +-- Engines/Wine/Verbs/secur32/script.js | 10 ++-- Engines/Wine/Verbs/vcrun2003/script.js | 9 ++-- Engines/Wine/Verbs/vcrun2005/script.js | 9 ++-- Engines/Wine/Verbs/vcrun2008/script.js | 9 ++-- Engines/Wine/Verbs/vcrun2010/script.js | 9 ++-- Engines/Wine/Verbs/vcrun2012/script.js | 9 ++-- Engines/Wine/Verbs/vcrun2013/script.js | 9 ++-- Engines/Wine/Verbs/vcrun2015/script.js | 9 ++-- Engines/Wine/Verbs/vcrun2017/script.js | 9 ++-- Engines/Wine/Verbs/vcrun6sp6/script.js | 9 ++-- Engines/Wine/Verbs/vulkanSDK/script.js | 9 ++-- Engines/Wine/Verbs/xact/script.js | 10 ++-- Utils/Functions/Apps/PlainInstaller/script.js | 2 +- Utils/Functions/Apps/Resources/script.js | 2 +- Utils/Functions/Filesystem/Extract/script.js | 6 +-- Utils/Functions/Filesystem/Files/script.js | 20 ++++++-- Utils/Functions/Net/Download/script.js | 4 +- Utils/Functions/Net/Resource/script.js | 6 +-- docs/_docs/Develop/script-js.md | 22 ++++----- docs/_docs/Develop/verbs.md | 4 +- 332 files changed, 898 insertions(+), 653 deletions(-) create mode 100644 Engines/Wine/Engine/Constants/script.js create mode 100644 Engines/Wine/Engine/Constants/script.json create mode 100644 Engines/Wine/Engine/Versions/script.js create mode 100644 Engines/Wine/Engine/Versions/script.json diff --git a/.eslintrc.yml b/.eslintrc.yml index ac7488e916..d993c0a35f 100644 --- a/.eslintrc.yml +++ b/.eslintrc.yml @@ -38,52 +38,12 @@ globals: # java Bean: false - # files - ls: false - mkdir: false - fileExists: false - cat: false - cp: false - getFileSize: false - fileName: false - lns: false - remove: false - touch: false + # translations tr: false - writeToFile: false - createTempFile: false - createTempDir: false - chmod: false # classes - AppResource: false - CabExtract: false - Checksum: false - Downloader: false - WineEngine: false - Extractor: false InstallationType: false - Resource: false SetupWizard: false - Wine: false - WineShortcut: false - # quick scripts - PlainInstaller: false - CustomInstallerScript: false - GogScript: false - InstallerScript: false - LocalInstallerScript: false - OnlineInstallerScript: false - OriginScript: false - QuickScript: false - SteamScript: false - UplayScript: false - ZipScript: false - - # wine - LATEST_DEVELOPMENT_VERSION: false - LATEST_STABLE_VERSION: false - LATEST_STAGING_VERSION: false - LATEST_DOS_SUPPORT_VERSION: false - WINE_PREFIX_DIR: false + # module system + module: false diff --git a/Applications/Accessories/7-zip/Online/script.js b/Applications/Accessories/7-zip/Online/script.js index ecf3780ff7..d703ebdce9 100644 --- a/Applications/Accessories/7-zip/Online/script.js +++ b/Applications/Accessories/7-zip/Online/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.online_installer_script"); +const OnlineInstallerScript = include("engines.wine.quick_script.online_installer_script"); new OnlineInstallerScript() .name("7-zip") diff --git a/Applications/Accessories/ImgBurn/Online/script.js b/Applications/Accessories/ImgBurn/Online/script.js index aff0149e91..82ebd93df3 100644 --- a/Applications/Accessories/ImgBurn/Online/script.js +++ b/Applications/Accessories/ImgBurn/Online/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.online_installer_script"); +const OnlineInstallerScript = include("engines.wine.quick_script.online_installer_script"); new OnlineInstallerScript() .name("ImgBurn") diff --git a/Applications/Accessories/Soundplant/Online/script.js b/Applications/Accessories/Soundplant/Online/script.js index a0626e9167..cb16cc8069 100644 --- a/Applications/Accessories/Soundplant/Online/script.js +++ b/Applications/Accessories/Soundplant/Online/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.online_installer_script"); +const OnlineInstallerScript = include("engines.wine.quick_script.online_installer_script"); include("engines.wine.plugins.windows_version"); new OnlineInstallerScript() diff --git a/Applications/Custom/LocalInstaller/Local/script.js b/Applications/Custom/LocalInstaller/Local/script.js index a0db23e5c5..c6cf999444 100644 --- a/Applications/Custom/LocalInstaller/Local/script.js +++ b/Applications/Custom/LocalInstaller/Local/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.local_installer_script"); +const LocalInstallerScript = include("engines.wine.quick_script.local_installer_script"); include("engines.wine.plugins.windows_version"); new LocalInstallerScript() diff --git a/Applications/Custom/OnlineInstaller/Online/script.js b/Applications/Custom/OnlineInstaller/Online/script.js index 59f095e560..080b2f6e76 100644 --- a/Applications/Custom/OnlineInstaller/Online/script.js +++ b/Applications/Custom/OnlineInstaller/Online/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.online_installer_script"); +const OnlineInstallerScript = include("engines.wine.quick_script.online_installer_script"); include("engines.wine.plugins.windows_version"); new OnlineInstallerScript() diff --git a/Applications/Development/Enterprise Architect/Local/script.js b/Applications/Development/Enterprise Architect/Local/script.js index b5b6b8b2ad..89ef2f5d4f 100644 --- a/Applications/Development/Enterprise Architect/Local/script.js +++ b/Applications/Development/Enterprise Architect/Local/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.local_installer_script"); +const LocalInstallerScript = include("engines.wine.quick_script.local_installer_script"); new LocalInstallerScript() .name("Enterprise Architect") diff --git a/Applications/Development/Enterprise Architect/Online (Trial)/script.js b/Applications/Development/Enterprise Architect/Online (Trial)/script.js index 8f87c8b6f1..6172740e3d 100644 --- a/Applications/Development/Enterprise Architect/Online (Trial)/script.js +++ b/Applications/Development/Enterprise Architect/Online (Trial)/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.online_installer_script"); +const OnlineInstallerScript = include("engines.wine.quick_script.online_installer_script"); new OnlineInstallerScript() .name("Enterprise Architect") diff --git a/Applications/Development/Notepad++/v7.2.2/script.js b/Applications/Development/Notepad++/v7.2.2/script.js index b7bd6bf295..b3f33a5589 100644 --- a/Applications/Development/Notepad++/v7.2.2/script.js +++ b/Applications/Development/Notepad++/v7.2.2/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.online_installer_script"); +const OnlineInstallerScript = include("engines.wine.quick_script.online_installer_script"); new OnlineInstallerScript() .name("Notepad++") diff --git a/Applications/Games/18 Wheels of Steel Across America/Local/script.js b/Applications/Games/18 Wheels of Steel Across America/Local/script.js index a25103bda7..8fb2ea463b 100644 --- a/Applications/Games/18 Wheels of Steel Across America/Local/script.js +++ b/Applications/Games/18 Wheels of Steel Across America/Local/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.local_installer_script"); +const LocalInstallerScript = include("engines.wine.quick_script.local_installer_script"); new LocalInstallerScript() .name("18 Wheels of Steel: Across America") diff --git a/Applications/Games/Age of Empires II HD/Steam/script.js b/Applications/Games/Age of Empires II HD/Steam/script.js index cb1154a52d..216c56b39f 100644 --- a/Applications/Games/Age of Empires II HD/Steam/script.js +++ b/Applications/Games/Age of Empires II HD/Steam/script.js @@ -1,5 +1,5 @@ -include("engines.wine.quick_script.steam_script"); -include("utils.functions.filesystem.files"); +const SteamScript = include("engines.wine.quick_script.steam_script"); +const {cp, remove, lns} = include("utils.functions.filesystem.files"); new SteamScript() .name("Age of Empires II HD") diff --git a/Applications/Games/Age of Empires III: Complete Collection/Steam/script.js b/Applications/Games/Age of Empires III: Complete Collection/Steam/script.js index 628f238c7b..11a3195d94 100644 --- a/Applications/Games/Age of Empires III: Complete Collection/Steam/script.js +++ b/Applications/Games/Age of Empires III: Complete Collection/Steam/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); include("engines.wine.plugins.override_dll"); include("engines.wine.verbs.mfc42"); diff --git a/Applications/Games/Anno 2070/Local/script.js b/Applications/Games/Anno 2070/Local/script.js index 2c685c8996..84495e3cd7 100644 --- a/Applications/Games/Anno 2070/Local/script.js +++ b/Applications/Games/Anno 2070/Local/script.js @@ -1,10 +1,11 @@ -include("engines.wine.quick_script.local_installer_script"); +const LocalInstallerScript = include("engines.wine.quick_script.local_installer_script"); +const {touch, writeToFile, chmod} = include("utils.functions.filesystem.files"); + include("engines.wine.plugins.virtual_desktop"); include("engines.wine.plugins.override_dll"); include("engines.wine.verbs.corefonts"); include("engines.wine.verbs.crypt32"); include("engines.wine.verbs.d3dx10"); -include("utils.functions.filesystem.files"); new LocalInstallerScript() .name("Anno 2070") diff --git a/Applications/Games/Anno 2070/Uplay/script.js b/Applications/Games/Anno 2070/Uplay/script.js index 82b1dd9183..1e4a4a70da 100644 --- a/Applications/Games/Anno 2070/Uplay/script.js +++ b/Applications/Games/Anno 2070/Uplay/script.js @@ -1,4 +1,5 @@ -include("engines.wine.quick_script.uplay_script"); +const UplayScript = include("engines.wine.quick_script.uplay_script"); + include("engines.wine.verbs.corefonts"); include("engines.wine.plugins.virtual_desktop"); diff --git a/Applications/Games/Assassin's Creed II/Steam/script.js b/Applications/Games/Assassin's Creed II/Steam/script.js index 4ddc47e7a1..4c00044198 100644 --- a/Applications/Games/Assassin's Creed II/Steam/script.js +++ b/Applications/Games/Assassin's Creed II/Steam/script.js @@ -1,4 +1,5 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); +const {LATEST_STAGING_VERSION} = include("engines.wine.engine.versions"); new SteamScript() .name("Assassin’s Creed II") diff --git a/Applications/Games/Assassin's Creed III/Steam/script.js b/Applications/Games/Assassin's Creed III/Steam/script.js index a212c56f1d..537b9ab3fb 100644 --- a/Applications/Games/Assassin's Creed III/Steam/script.js +++ b/Applications/Games/Assassin's Creed III/Steam/script.js @@ -1,4 +1,5 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); +const {LATEST_STAGING_VERSION} = include("engines.wine.engine.versions"); new SteamScript() .name("Assassin’s Creed® III") diff --git a/Applications/Games/Assassin's Creed IV Black Flag/Steam/script.js b/Applications/Games/Assassin's Creed IV Black Flag/Steam/script.js index d9b13ac931..af3a61e84a 100644 --- a/Applications/Games/Assassin's Creed IV Black Flag/Steam/script.js +++ b/Applications/Games/Assassin's Creed IV Black Flag/Steam/script.js @@ -1,4 +1,7 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); +const {LATEST_STAGING_VERSION} = include("engines.wine.engine.versions"); + +include("engines.wine.verbs.uplay"); new SteamScript() .name("Assassin’s Creed® IV Black Flag™") diff --git a/Applications/Games/Assassin's Creed Revelations/Steam/script.js b/Applications/Games/Assassin's Creed Revelations/Steam/script.js index 35427d67c9..c155e4f1f3 100644 --- a/Applications/Games/Assassin's Creed Revelations/Steam/script.js +++ b/Applications/Games/Assassin's Creed Revelations/Steam/script.js @@ -1,4 +1,6 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); +const {LATEST_STAGING_VERSION} = include("engines.wine.engine.versions"); + include("engines.wine.verbs.uplay"); new SteamScript() diff --git a/Applications/Games/Assassin's Creed Unity/Steam/script.js b/Applications/Games/Assassin's Creed Unity/Steam/script.js index 7064d2f7b6..5d33b383a1 100644 --- a/Applications/Games/Assassin's Creed Unity/Steam/script.js +++ b/Applications/Games/Assassin's Creed Unity/Steam/script.js @@ -1,4 +1,5 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); +const {LATEST_STAGING_VERSION} = include("engines.wine.engine.versions"); new SteamScript() .name("Assassin’s Creed® Unity") diff --git a/Applications/Games/Assassin's Creed/Steam/script.js b/Applications/Games/Assassin's Creed/Steam/script.js index 4beddc15d9..50763f4587 100644 --- a/Applications/Games/Assassin's Creed/Steam/script.js +++ b/Applications/Games/Assassin's Creed/Steam/script.js @@ -1,4 +1,5 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); +const {LATEST_STAGING_VERSION} = include("engines.wine.engine.versions"); new SteamScript() .name("Assassin's Creed™") diff --git a/Applications/Games/Assassin's Creed: Brotherhood/Steam/script.js b/Applications/Games/Assassin's Creed: Brotherhood/Steam/script.js index 5bc14c7fbb..7bfe4d26d2 100644 --- a/Applications/Games/Assassin's Creed: Brotherhood/Steam/script.js +++ b/Applications/Games/Assassin's Creed: Brotherhood/Steam/script.js @@ -1,4 +1,6 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); +const {LATEST_STAGING_VERSION} = include("engines.wine.engine.versions"); + include("engines.wine.verbs.uplay"); new SteamScript() diff --git a/Applications/Games/Audiosurf/Steam/script.js b/Applications/Games/Audiosurf/Steam/script.js index a0c768354f..fa19015cb3 100644 --- a/Applications/Games/Audiosurf/Steam/script.js +++ b/Applications/Games/Audiosurf/Steam/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); include("engines.wine.verbs.quicktime76"); include("engines.wine.verbs.corefonts"); include("engines.wine.verbs.tahoma"); diff --git a/Applications/Games/BRINK/Steam/script.js b/Applications/Games/BRINK/Steam/script.js index 82c7a8c64b..0cac3a7f3d 100644 --- a/Applications/Games/BRINK/Steam/script.js +++ b/Applications/Games/BRINK/Steam/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); new SteamScript() .name("BRINK") diff --git "a/Applications/Games/Batman\342\204\242: Arkham Asylum/Steam/script.js" "b/Applications/Games/Batman\342\204\242: Arkham Asylum/Steam/script.js" index 5d8d4ac831..950ab56a7a 100644 --- "a/Applications/Games/Batman\342\204\242: Arkham Asylum/Steam/script.js" +++ "b/Applications/Games/Batman\342\204\242: Arkham Asylum/Steam/script.js" @@ -1,4 +1,6 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); +const {LATEST_STAGING_VERSION} = include("engines.wine.engine.versions"); + include("engines.wine.plugins.csmt"); include("engines.wine.plugins.glsl"); @@ -9,7 +11,7 @@ new SteamScript() .wineVersion(LATEST_STAGING_VERSION) .wineDistribution("staging") .appId(35140) - .postInstall(function (wine, wizard) { + .postInstall(function (wine/*, wizard*/) { wine.UseGLSL("disabled"); wine.enableCSMT(); }); diff --git "a/Applications/Games/Batman\342\204\242: Arkham City/Steam/script.js" "b/Applications/Games/Batman\342\204\242: Arkham City/Steam/script.js" index 035962981e..ab387f71cf 100644 --- "a/Applications/Games/Batman\342\204\242: Arkham City/Steam/script.js" +++ "b/Applications/Games/Batman\342\204\242: Arkham City/Steam/script.js" @@ -1,4 +1,6 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); +const {LATEST_STAGING_VERSION} = include("engines.wine.engine.versions"); + include("engines.wine.plugins.csmt"); new SteamScript() @@ -8,6 +10,6 @@ new SteamScript() .wineVersion(LATEST_STAGING_VERSION) .wineDistribution("staging") .appId(200260) - .postInstall(function (wine, wizard) { + .postInstall(function (wine/*, wizard*/) { wine.enableCSMT(); }); diff --git "a/Applications/Games/Batman\342\204\242: Arkham Origins/Steam/script.js" "b/Applications/Games/Batman\342\204\242: Arkham Origins/Steam/script.js" index fd9a3bbad4..99b688493f 100644 --- "a/Applications/Games/Batman\342\204\242: Arkham Origins/Steam/script.js" +++ "b/Applications/Games/Batman\342\204\242: Arkham Origins/Steam/script.js" @@ -1,4 +1,6 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); +const {LATEST_STAGING_VERSION} = include("engines.wine.engine.versions"); + include("engines.wine.plugins.csmt"); new SteamScript() @@ -7,7 +9,7 @@ new SteamScript() .author("ImperatorS79") .wineVersion(LATEST_STAGING_VERSION) .wineDistribution("staging") - .postInstall(function (wine, wizard) { + .postInstall(function (wine/*, wizard*/) { wine.enableCSMT(); //maybe needs xact }) diff --git a/Applications/Games/Beyond Good and Evil/Uplay/script.js b/Applications/Games/Beyond Good and Evil/Uplay/script.js index 621b32a550..5f6d62fc21 100644 --- a/Applications/Games/Beyond Good and Evil/Uplay/script.js +++ b/Applications/Games/Beyond Good and Evil/Uplay/script.js @@ -1,4 +1,5 @@ -include("engines.wine.quick_script.uplay_script"); +const UplayScript = include("engines.wine.quick_script.uplay_script"); +const {LATEST_STAGING_VERSION} = include("engines.wine.engine.versions"); new UplayScript() .name("Beyond Good and Evil™") diff --git a/Applications/Games/BioShock/Steam (Demo)/script.js b/Applications/Games/BioShock/Steam (Demo)/script.js index bbd486c40d..a02849a37c 100644 --- a/Applications/Games/BioShock/Steam (Demo)/script.js +++ b/Applications/Games/BioShock/Steam (Demo)/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); new SteamScript() .name("BioShock™ (Demo)") diff --git a/Applications/Games/BioShock/Steam/script.js b/Applications/Games/BioShock/Steam/script.js index caa4caac18..6f430af450 100644 --- a/Applications/Games/BioShock/Steam/script.js +++ b/Applications/Games/BioShock/Steam/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); new SteamScript() .name("BioShock™") diff --git a/Applications/Games/Black Mesa/Steam/script.js b/Applications/Games/Black Mesa/Steam/script.js index ecb05cf4e8..d87ea035b8 100644 --- a/Applications/Games/Black Mesa/Steam/script.js +++ b/Applications/Games/Black Mesa/Steam/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); new SteamScript() .name("Black Mesa") diff --git a/Applications/Games/Blizzard app/Online/script.js b/Applications/Games/Blizzard app/Online/script.js index ff664cc22e..1c87463cb7 100644 --- a/Applications/Games/Blizzard app/Online/script.js +++ b/Applications/Games/Blizzard app/Online/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.online_installer_script"); +const OnlineInstallerScript = include("engines.wine.quick_script.online_installer_script"); include("engines.wine.verbs.vcrun2015"); include("engines.wine.verbs.corefonts"); diff --git a/Applications/Games/Borderlands/Steam/script.js b/Applications/Games/Borderlands/Steam/script.js index 99c4451483..8b54564068 100644 --- a/Applications/Games/Borderlands/Steam/script.js +++ b/Applications/Games/Borderlands/Steam/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); new SteamScript() .name("Borderlands") diff --git a/Applications/Games/Braid/Steam (Demo)/script.js b/Applications/Games/Braid/Steam (Demo)/script.js index bdd2d78d87..ae6510781a 100644 --- a/Applications/Games/Braid/Steam (Demo)/script.js +++ b/Applications/Games/Braid/Steam (Demo)/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); new SteamScript() .name("Braid (Demo)") diff --git a/Applications/Games/Braid/Steam/script.js b/Applications/Games/Braid/Steam/script.js index 6c6d792cb0..be895199b5 100644 --- a/Applications/Games/Braid/Steam/script.js +++ b/Applications/Games/Braid/Steam/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); new SteamScript() .name("Braid") diff --git a/Applications/Games/Burnout Paradise: The Ultimate Box/Steam/script.js b/Applications/Games/Burnout Paradise: The Ultimate Box/Steam/script.js index eeeaabcb66..df78d84c38 100644 --- a/Applications/Games/Burnout Paradise: The Ultimate Box/Steam/script.js +++ b/Applications/Games/Burnout Paradise: The Ultimate Box/Steam/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); new SteamScript() .name("Burnout™ Paradise: The Ultimate Box") diff --git a/Applications/Games/CONSORTIUM/Steam/script.js b/Applications/Games/CONSORTIUM/Steam/script.js index a699cfa5bc..d314afde49 100644 --- a/Applications/Games/CONSORTIUM/Steam/script.js +++ b/Applications/Games/CONSORTIUM/Steam/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); new SteamScript() .name("CONSORTIUM") diff --git a/Applications/Games/Caesar III/Local/script.js b/Applications/Games/Caesar III/Local/script.js index 96a4d6b56e..91f033187e 100644 --- a/Applications/Games/Caesar III/Local/script.js +++ b/Applications/Games/Caesar III/Local/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.local_installer_script"); +const LocalInstallerScript = include("engines.wine.quick_script.local_installer_script"); include("engines.wine.plugins.virtual_desktop"); new LocalInstallerScript() diff --git a/Applications/Games/Caesar III/Steam/script.js b/Applications/Games/Caesar III/Steam/script.js index 98302c2a58..1402dd9f79 100644 --- a/Applications/Games/Caesar III/Steam/script.js +++ b/Applications/Games/Caesar III/Steam/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); include("engines.wine.plugins.virtual_desktop"); new SteamScript() diff --git a/Applications/Games/Call of Juarez Gunslinger/Steam (Demo)/script.js b/Applications/Games/Call of Juarez Gunslinger/Steam (Demo)/script.js index 14b18e1d29..9d75a06779 100644 --- a/Applications/Games/Call of Juarez Gunslinger/Steam (Demo)/script.js +++ b/Applications/Games/Call of Juarez Gunslinger/Steam (Demo)/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); new SteamScript() .name("Call of Juarez® Gunslinger (Demo)") diff --git a/Applications/Games/Call of Juarez Gunslinger/Steam/script.js b/Applications/Games/Call of Juarez Gunslinger/Steam/script.js index a0536743b8..bcf49e0547 100644 --- a/Applications/Games/Call of Juarez Gunslinger/Steam/script.js +++ b/Applications/Games/Call of Juarez Gunslinger/Steam/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); new SteamScript() .name("Call of Juarez® Gunslinger") diff --git a/Applications/Games/ChromaGun/Steam (Demo)/script.js b/Applications/Games/ChromaGun/Steam (Demo)/script.js index 5113cb7523..49a3647e3e 100644 --- a/Applications/Games/ChromaGun/Steam (Demo)/script.js +++ b/Applications/Games/ChromaGun/Steam (Demo)/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); new SteamScript() .name("ChromaGun (Demo)") diff --git a/Applications/Games/ChromaGun/Steam/script.js b/Applications/Games/ChromaGun/Steam/script.js index 8b630cabd1..68a4e1e28f 100644 --- a/Applications/Games/ChromaGun/Steam/script.js +++ b/Applications/Games/ChromaGun/Steam/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); new SteamScript() .name("ChromaGun") diff --git a/Applications/Games/Civilization V/Steam/script.js b/Applications/Games/Civilization V/Steam/script.js index f30ed8db79..0311148b88 100644 --- a/Applications/Games/Civilization V/Steam/script.js +++ b/Applications/Games/Civilization V/Steam/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); new SteamScript() .name("Civilization V") diff --git a/Applications/Games/Clicker Heroes/Steam/script.js b/Applications/Games/Clicker Heroes/Steam/script.js index 7564c455f7..0fb7d8816d 100644 --- a/Applications/Games/Clicker Heroes/Steam/script.js +++ b/Applications/Games/Clicker Heroes/Steam/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); new SteamScript() .name("Clicker Heroes") diff --git a/Applications/Games/Cogs/Steam (Demo)/script.js b/Applications/Games/Cogs/Steam (Demo)/script.js index 0b9aa8637d..5ba00255f0 100644 --- a/Applications/Games/Cogs/Steam (Demo)/script.js +++ b/Applications/Games/Cogs/Steam (Demo)/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); new SteamScript() .name("Cogs (Demo)") diff --git a/Applications/Games/Cogs/Steam/script.js b/Applications/Games/Cogs/Steam/script.js index aafaefdf57..6ebe15aa61 100644 --- a/Applications/Games/Cogs/Steam/script.js +++ b/Applications/Games/Cogs/Steam/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); new SteamScript() .name("Cogs") diff --git a/Applications/Games/Command and Conquer - Tiberium Wars/Local/script.js b/Applications/Games/Command and Conquer - Tiberium Wars/Local/script.js index bf721d90d8..79babe2b94 100644 --- a/Applications/Games/Command and Conquer - Tiberium Wars/Local/script.js +++ b/Applications/Games/Command and Conquer - Tiberium Wars/Local/script.js @@ -1,5 +1,6 @@ -include("engines.wine.quick_script.local_installer_script"); -include("engines.wine.engine.object"); +const LocalInstallerScript = include("engines.wine.quick_script.local_installer_script"); +const {LATEST_STAGING_VERSION} = include("engines.wine.engine.versions"); + include("engines.wine.plugins.csmt"); include("engines.wine.plugins.windows_version"); include("engines.wine.verbs.d3dx9"); diff --git a/Applications/Games/Consortium: The Tower/Steam (Demo)/script.js b/Applications/Games/Consortium: The Tower/Steam (Demo)/script.js index 1c137afd2c..ef07946875 100644 --- a/Applications/Games/Consortium: The Tower/Steam (Demo)/script.js +++ b/Applications/Games/Consortium: The Tower/Steam (Demo)/script.js @@ -1,4 +1,5 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); +const {LATEST_STAGING_VERSION} = include("engines.wine.engine.versions"); new SteamScript() .name("Consortium: The Tower (Demo)") diff --git a/Applications/Games/Consortium: The Tower/Steam/script.js b/Applications/Games/Consortium: The Tower/Steam/script.js index 0739777e30..0ae10eff60 100644 --- a/Applications/Games/Consortium: The Tower/Steam/script.js +++ b/Applications/Games/Consortium: The Tower/Steam/script.js @@ -1,4 +1,5 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); +const {LATEST_STAGING_VERSION} = include("engines.wine.engine.versions"); new SteamScript() .name("Consortium: The Tower") diff --git a/Applications/Games/Crayon Physics/Online/script.js b/Applications/Games/Crayon Physics/Online/script.js index 0c938d892b..7f6fdc47ed 100644 --- a/Applications/Games/Crayon Physics/Online/script.js +++ b/Applications/Games/Crayon Physics/Online/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.zip_script"); +const ZipScript = include("engines.wine.quick_script.zip_script"); new ZipScript() .name("Crayon Physics") diff --git a/Applications/Games/DC Universe Online/Online/script.js b/Applications/Games/DC Universe Online/Online/script.js index 184f7b7a04..57328bdc1d 100644 --- a/Applications/Games/DC Universe Online/Online/script.js +++ b/Applications/Games/DC Universe Online/Online/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.online_installer_script"); +const OnlineInstallerScript = include("engines.wine.quick_script.online_installer_script"); include("engines.wine.verbs.vcrun2012"); include("engines.wine.verbs.d3dx9"); diff --git a/Applications/Games/DOOM (2016)/Steam/script.js b/Applications/Games/DOOM (2016)/Steam/script.js index 0465e87ecf..2183818e37 100644 --- a/Applications/Games/DOOM (2016)/Steam/script.js +++ b/Applications/Games/DOOM (2016)/Steam/script.js @@ -1,4 +1,5 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); +const {LATEST_STAGING_VERSION} = include("engines.wine.engine.versions"); new SteamScript() .name("DOOM (2016)") diff --git a/Applications/Games/Dr. Langeskov, The Tiger, and The Terribly Cursed Emerald: A Whirlwind Heist/Steam/script.js b/Applications/Games/Dr. Langeskov, The Tiger, and The Terribly Cursed Emerald: A Whirlwind Heist/Steam/script.js index c3936e9bc2..f92ca21326 100644 --- a/Applications/Games/Dr. Langeskov, The Tiger, and The Terribly Cursed Emerald: A Whirlwind Heist/Steam/script.js +++ b/Applications/Games/Dr. Langeskov, The Tiger, and The Terribly Cursed Emerald: A Whirlwind Heist/Steam/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); new SteamScript() .name("Dr. Langeskov, The Tiger, and The Terribly Cursed Emerald: A Whirlwind Heist") diff --git a/Applications/Games/Dragon Ball Xenoverse 2/Steam/script.js b/Applications/Games/Dragon Ball Xenoverse 2/Steam/script.js index 7544fe238f..9f6310faf8 100644 --- a/Applications/Games/Dragon Ball Xenoverse 2/Steam/script.js +++ b/Applications/Games/Dragon Ball Xenoverse 2/Steam/script.js @@ -1,4 +1,6 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); +const {LATEST_STAGING_VERSION} = include("engines.wine.engine.versions"); + include("engines.wine.plugins.csmt"); new SteamScript() diff --git a/Applications/Games/Dragon Ball Xenoverse/Steam/script.js b/Applications/Games/Dragon Ball Xenoverse/Steam/script.js index 91ccce0a7e..952d3da765 100644 --- a/Applications/Games/Dragon Ball Xenoverse/Steam/script.js +++ b/Applications/Games/Dragon Ball Xenoverse/Steam/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); new SteamScript() .name("Dragon Ball Xenoverse") diff --git a/Applications/Games/Druid Soccer/Online/script.js b/Applications/Games/Druid Soccer/Online/script.js index 3a10d969eb..47cbd8ac39 100644 --- a/Applications/Games/Druid Soccer/Online/script.js +++ b/Applications/Games/Druid Soccer/Online/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.zip_script"); +const ZipScript = include("engines.wine.quick_script.zip_script"); new ZipScript() .name("Druid Soccer") diff --git a/Applications/Games/Earth Eternal - Valkal's Shadow/Online/script.js b/Applications/Games/Earth Eternal - Valkal's Shadow/Online/script.js index 02ca2c00c2..3aa44d3ab8 100644 --- a/Applications/Games/Earth Eternal - Valkal's Shadow/Online/script.js +++ b/Applications/Games/Earth Eternal - Valkal's Shadow/Online/script.js @@ -1,4 +1,6 @@ -include("engines.wine.quick_script.online_installer_script"); +const OnlineInstallerScript = include("engines.wine.quick_script.online_installer_script"); +const {LATEST_STAGING_VERSION} = include("engines.wine.engine.versions"); + include("engines.wine.plugins.windows_version"); include("engines.wine.verbs.corefonts"); include("engines.wine.verbs.d3dx9"); diff --git a/Applications/Games/Elite:Dangerous/Steam/script.js b/Applications/Games/Elite:Dangerous/Steam/script.js index 063ed3e5f9..f11e544a7d 100644 --- a/Applications/Games/Elite:Dangerous/Steam/script.js +++ b/Applications/Games/Elite:Dangerous/Steam/script.js @@ -1,3 +1,5 @@ +const SteamScript = include("engines.wine.quick_script.steam_script"); + include("engines.wine.verbs.corefonts"); include("engines.wine.verbs.dotnet45"); include("engines.wine.verbs.vcrun2015"); diff --git a/Applications/Games/Enderal/Steam/script.js b/Applications/Games/Enderal/Steam/script.js index 7844e9c328..76645596f6 100644 --- a/Applications/Games/Enderal/Steam/script.js +++ b/Applications/Games/Enderal/Steam/script.js @@ -1,5 +1,5 @@ -include("engines.wine.quick_script.steam_script"); -include("utils.functions.filesystem.files"); +const SteamScript = include("engines.wine.quick_script.steam_script"); +const Downloader = include("utils.functions.net.download"); new SteamScript() .name("Enderal") diff --git a/Applications/Games/Epic Games Launcher/Local/script.js b/Applications/Games/Epic Games Launcher/Local/script.js index 160a3d5366..5c0b720264 100644 --- a/Applications/Games/Epic Games Launcher/Local/script.js +++ b/Applications/Games/Epic Games Launcher/Local/script.js @@ -1,4 +1,5 @@ -include("engines.wine.quick_script.local_installer_script"); +const LocalInstallerScript = include("engines.wine.quick_script.local_installer_script"); +const {LATEST_STAGING_VERSION} = include("engines.wine.engine.versions"); new LocalInstallerScript() .name("Epic Games Launcher") diff --git a/Applications/Games/Epic Games Launcher/Online/script.js b/Applications/Games/Epic Games Launcher/Online/script.js index 47222e694b..5d089b0529 100644 --- a/Applications/Games/Epic Games Launcher/Online/script.js +++ b/Applications/Games/Epic Games Launcher/Online/script.js @@ -1,4 +1,5 @@ -include("engines.wine.quick_script.online_installer_script"); +const OnlineInstallerScript = include("engines.wine.quick_script.online_installer_script"); +const {LATEST_STAGING_VERSION} = include("engines.wine.engine.versions"); new OnlineInstallerScript() .name("Epic Games Launcher") diff --git a/Applications/Games/Ether One Redux/Steam/script.js b/Applications/Games/Ether One Redux/Steam/script.js index e35d0ba568..166a30b841 100644 --- a/Applications/Games/Ether One Redux/Steam/script.js +++ b/Applications/Games/Ether One Redux/Steam/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); new SteamScript() .name("Ether One Redux") diff --git a/Applications/Games/Europa Universalis II/Local/script.js b/Applications/Games/Europa Universalis II/Local/script.js index c9c50b40fd..24ef72f419 100644 --- a/Applications/Games/Europa Universalis II/Local/script.js +++ b/Applications/Games/Europa Universalis II/Local/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.local_installer_script"); +const LocalInstallerScript = include("engines.wine.quick_script.local_installer_script"); new LocalInstallerScript() .name("Europa Universalis II") diff --git a/Applications/Games/Europa Universalis IV/Steam (Demo)/script.js b/Applications/Games/Europa Universalis IV/Steam (Demo)/script.js index 7cc771c0f7..f98effe151 100644 --- a/Applications/Games/Europa Universalis IV/Steam (Demo)/script.js +++ b/Applications/Games/Europa Universalis IV/Steam (Demo)/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); new SteamScript() .name("Europa Universalis IV (Demo)") diff --git a/Applications/Games/Europa Universalis IV/Steam/script.js b/Applications/Games/Europa Universalis IV/Steam/script.js index 707a49c6cd..02531c9856 100644 --- a/Applications/Games/Europa Universalis IV/Steam/script.js +++ b/Applications/Games/Europa Universalis IV/Steam/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); new SteamScript() .name("Europa Universalis IV") diff --git a/Applications/Games/Far Cry 2/Steam/script.js b/Applications/Games/Far Cry 2/Steam/script.js index 10234299a5..537ca09e13 100644 --- a/Applications/Games/Far Cry 2/Steam/script.js +++ b/Applications/Games/Far Cry 2/Steam/script.js @@ -1,4 +1,6 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); +const {LATEST_STAGING_VERSION} = include("engines.wine.engine.versions"); + include("engines.wine.plugins.csmt"); include("engines.wine.verbs.secur32"); diff --git a/Applications/Games/Far Cry 3 - Blood Dragon/Uplay/script.js b/Applications/Games/Far Cry 3 - Blood Dragon/Uplay/script.js index ef2dc95eb9..b48b05b2a6 100644 --- a/Applications/Games/Far Cry 3 - Blood Dragon/Uplay/script.js +++ b/Applications/Games/Far Cry 3 - Blood Dragon/Uplay/script.js @@ -1,4 +1,5 @@ -include("engines.wine.quick_script.uplay_script"); +const UplayScript = include("engines.wine.quick_script.uplay_script"); +const {LATEST_STAGING_VERSION} = include("engines.wine.engine.versions"); new UplayScript() .name("Far Cry 3 - Blood Dragon") diff --git a/Applications/Games/Far Cry/Steam/script.js b/Applications/Games/Far Cry/Steam/script.js index 5a6fb6dce9..9f84c9945a 100644 --- a/Applications/Games/Far Cry/Steam/script.js +++ b/Applications/Games/Far Cry/Steam/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); new SteamScript() .name("Far Cry") diff --git a/Applications/Games/FlatOut/Steam (Demo)/script.js b/Applications/Games/FlatOut/Steam (Demo)/script.js index 739dba19d5..381a42a32f 100644 --- a/Applications/Games/FlatOut/Steam (Demo)/script.js +++ b/Applications/Games/FlatOut/Steam (Demo)/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); new SteamScript() .name("FlatOut (Demo)") diff --git a/Applications/Games/FlatOut/Steam/script.js b/Applications/Games/FlatOut/Steam/script.js index 7ff808686f..6c22601e60 100644 --- a/Applications/Games/FlatOut/Steam/script.js +++ b/Applications/Games/FlatOut/Steam/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); new SteamScript() .name("FlatOut") diff --git a/Applications/Games/GOG Galaxy/Online/script.js b/Applications/Games/GOG Galaxy/Online/script.js index 21e3b70441..cac6089505 100644 --- a/Applications/Games/GOG Galaxy/Online/script.js +++ b/Applications/Games/GOG Galaxy/Online/script.js @@ -1,4 +1,7 @@ -include("engines.wine.quick_script.online_installer_script"); +const OnlineInstallerScript = include("engines.wine.quick_script.online_installer_script"); +const {LATEST_STAGING_VERSION} = include("engines.wine.engine.versions"); +const {remove, lns} = include("utils.functions.filesystem.files"); + include("engines.wine.verbs.corefonts"); include("engines.wine.verbs.vcrun2017"); include("engines.wine.verbs.xact"); diff --git a/Applications/Games/Goodbye Deponia/Steam (Demo)/script.js b/Applications/Games/Goodbye Deponia/Steam (Demo)/script.js index 15224b109a..52be55b4ff 100644 --- a/Applications/Games/Goodbye Deponia/Steam (Demo)/script.js +++ b/Applications/Games/Goodbye Deponia/Steam (Demo)/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); new SteamScript() .name("Goodbye Deponia (Demo)") diff --git a/Applications/Games/Goodbye Deponia/Steam/script.js b/Applications/Games/Goodbye Deponia/Steam/script.js index e93792b1de..c80ba68c2a 100644 --- a/Applications/Games/Goodbye Deponia/Steam/script.js +++ b/Applications/Games/Goodbye Deponia/Steam/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); new SteamScript() .name("Goodbye Deponia") diff --git a/Applications/Games/Guild Wars 2/Local/script.js b/Applications/Games/Guild Wars 2/Local/script.js index bd6bf114aa..46a2648552 100644 --- a/Applications/Games/Guild Wars 2/Local/script.js +++ b/Applications/Games/Guild Wars 2/Local/script.js @@ -1,4 +1,6 @@ -include("engines.wine.quick_script.local_installer_script"); +const LocalInstallerScript = include("engines.wine.quick_script.local_installer_script"); +const {LATEST_STAGING_VERSION} = include("engines.wine.engine.versions"); + include("engines.wine.plugins.csmt"); include("engines.wine.plugins.virtual_desktop"); diff --git a/Applications/Games/Guild Wars 2/Online/script.js b/Applications/Games/Guild Wars 2/Online/script.js index 03525cf3d2..397372cbae 100644 --- a/Applications/Games/Guild Wars 2/Online/script.js +++ b/Applications/Games/Guild Wars 2/Online/script.js @@ -1,4 +1,6 @@ -include("engines.wine.quick_script.online_installer_script"); +const OnlineInstallerScript = include("engines.wine.quick_script.online_installer_script"); +const {LATEST_STAGING_VERSION} = include("engines.wine.engine.versions"); + include("engines.wine.plugins.csmt"); include("engines.wine.plugins.virtual_desktop"); diff --git a/Applications/Games/Hearthstone/Online/script.js b/Applications/Games/Hearthstone/Online/script.js index 8f7399fda4..d03168076d 100644 --- a/Applications/Games/Hearthstone/Online/script.js +++ b/Applications/Games/Hearthstone/Online/script.js @@ -1,4 +1,6 @@ -include("engines.wine.quick_script.online_installer_script"); +const OnlineInstallerScript = include("engines.wine.quick_script.online_installer_script"); +const {LATEST_STAGING_VERSION} = include("engines.wine.engine.versions"); + include("engines.wine.verbs.vcrun2015"); include("engines.wine.verbs.corefonts"); diff --git a/Applications/Games/Heroes of the Storm/Online/script.js b/Applications/Games/Heroes of the Storm/Online/script.js index ac93e1c15e..e96431a03c 100644 --- a/Applications/Games/Heroes of the Storm/Online/script.js +++ b/Applications/Games/Heroes of the Storm/Online/script.js @@ -1,4 +1,6 @@ -include("engines.wine.quick_script.online_installer_script"); +const OnlineInstallerScript = include("engines.wine.quick_script.online_installer_script"); +const {LATEST_STAGING_VERSION} = include("engines.wine.engine.versions"); + include("engines.wine.plugins.windows_version"); include("engines.wine.verbs.vcrun2015"); include("engines.wine.verbs.corefonts"); diff --git a/Applications/Games/Hexcells Infinite/Steam/script.js b/Applications/Games/Hexcells Infinite/Steam/script.js index 1ac18138cc..7997fa1e80 100644 --- a/Applications/Games/Hexcells Infinite/Steam/script.js +++ b/Applications/Games/Hexcells Infinite/Steam/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); new SteamScript() .name("Hexcells Infinite") diff --git a/Applications/Games/Hexcells Plus/Steam/script.js b/Applications/Games/Hexcells Plus/Steam/script.js index 75e1dccd89..bd98a1feff 100644 --- a/Applications/Games/Hexcells Plus/Steam/script.js +++ b/Applications/Games/Hexcells Plus/Steam/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); new SteamScript() .name("Hexcells Plus") diff --git a/Applications/Games/Hexcells/Steam/script.js b/Applications/Games/Hexcells/Steam/script.js index c09fc540b9..8081e31f0a 100644 --- a/Applications/Games/Hexcells/Steam/script.js +++ b/Applications/Games/Hexcells/Steam/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); new SteamScript() .name("Hexcells") diff --git a/Applications/Games/Icy Tower/v1.5/script.js b/Applications/Games/Icy Tower/v1.5/script.js index 4b8d940ae4..5323b57ea2 100644 --- a/Applications/Games/Icy Tower/v1.5/script.js +++ b/Applications/Games/Icy Tower/v1.5/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.online_installer_script"); +const OnlineInstallerScript = include("engines.wine.quick_script.online_installer_script"); new OnlineInstallerScript() .name("Icy Tower 1.5") diff --git a/Applications/Games/It came from space and ate our brains/Steam/script.js b/Applications/Games/It came from space and ate our brains/Steam/script.js index 5f55bfabf5..dbc54270cd 100644 --- a/Applications/Games/It came from space and ate our brains/Steam/script.js +++ b/Applications/Games/It came from space and ate our brains/Steam/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); include("engines.wine.verbs.d3dx10"); diff --git a/Applications/Games/League of Legends/Online/script.js b/Applications/Games/League of Legends/Online/script.js index 8612357fce..30590ba83d 100644 --- a/Applications/Games/League of Legends/Online/script.js +++ b/Applications/Games/League of Legends/Online/script.js @@ -1,8 +1,11 @@ -include("engines.wine.quick_script.custom_installer_script"); +const CustomInstallerScript = include("engines.wine.quick_script.custom_installer_script"); +const {LATEST_STAGING_VERSION} = include("engines.wine.engine.versions"); +const {fileName, mkdir, writeToFile} = include("utils.functions.filesystem.files"); +const Resource = include("utils.functions.net.resource"); + include("engines.wine.plugins.csmt"); include("engines.wine.plugins.override_dll"); include("engines.wine.plugins.windows_version"); -include("engines.wine.shortcuts.wine"); include("engines.wine.verbs.sandbox"); include("engines.wine.verbs.d3dx9"); diff --git a/Applications/Games/Lego Rock Raiders/Local/script.js b/Applications/Games/Lego Rock Raiders/Local/script.js index 0acfb6bad0..e3babe66ac 100644 --- a/Applications/Games/Lego Rock Raiders/Local/script.js +++ b/Applications/Games/Lego Rock Raiders/Local/script.js @@ -1,7 +1,7 @@ -include("engines.wine.quick_script.local_installer_script"); -include("utils.functions.net.download"); -include("utils.functions.filesystem.extract"); -include("utils.functions.filesystem.files"); +const LocalInstallerScript = include("engines.wine.quick_script.local_installer_script"); +const Downloader = include("utils.functions.net.download"); +const {Extractor} = include("utils.functions.filesystem.extract"); + include("engines.wine.verbs.amstream"); include("engines.wine.verbs.quartz"); include("engines.wine.verbs.devenum"); diff --git a/Applications/Games/Mafia II/Steam (Demo)/script.js b/Applications/Games/Mafia II/Steam (Demo)/script.js index f35469aab3..b4cdec33ab 100644 --- a/Applications/Games/Mafia II/Steam (Demo)/script.js +++ b/Applications/Games/Mafia II/Steam (Demo)/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); new SteamScript() .name("Mafia II (Demo)") diff --git a/Applications/Games/Mafia II/Steam/script.js b/Applications/Games/Mafia II/Steam/script.js index fc66e95c27..45dcc23542 100644 --- a/Applications/Games/Mafia II/Steam/script.js +++ b/Applications/Games/Mafia II/Steam/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); new SteamScript() .name("Mafia II") diff --git a/Applications/Games/Magic The Gathering Arena/Online/script.js b/Applications/Games/Magic The Gathering Arena/Online/script.js index b3230b6401..86875a4569 100644 --- a/Applications/Games/Magic The Gathering Arena/Online/script.js +++ b/Applications/Games/Magic The Gathering Arena/Online/script.js @@ -1,4 +1,6 @@ -include("engines.wine.quick_script.online_installer_script"); +const OnlineInstallerScript = include("engines.wine.quick_script.online_installer_script"); +const {LATEST_STAGING_VERSION} = include("engines.wine.engine.versions"); + include("engines.wine.verbs.dxvk"); include("engines.wine.plugins.usetakefocus"); diff --git a/Applications/Games/Mass Effect 2/Origin/script.js b/Applications/Games/Mass Effect 2/Origin/script.js index 1592e1d64a..3f8a9fe9aa 100644 --- a/Applications/Games/Mass Effect 2/Origin/script.js +++ b/Applications/Games/Mass Effect 2/Origin/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.origin_script"); +const OriginScript = include("engines.wine.quick_script.origin_script"); new OriginScript() .name("Mass Effect 2") diff --git a/Applications/Games/Mass Effect 2/Steam/script.js b/Applications/Games/Mass Effect 2/Steam/script.js index 092c909036..46a2066330 100644 --- a/Applications/Games/Mass Effect 2/Steam/script.js +++ b/Applications/Games/Mass Effect 2/Steam/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); new SteamScript() .name("Mass Effect 2") diff --git a/Applications/Games/Mass Effect/Steam/script.js b/Applications/Games/Mass Effect/Steam/script.js index e484e74bcb..369c38a733 100644 --- a/Applications/Games/Mass Effect/Steam/script.js +++ b/Applications/Games/Mass Effect/Steam/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); new SteamScript() .name("Mass Effect") diff --git a/Applications/Games/Medieval II: Total War/Steam (Demo)/script.js b/Applications/Games/Medieval II: Total War/Steam (Demo)/script.js index d22c5a3ce6..6cedba5a7d 100644 --- a/Applications/Games/Medieval II: Total War/Steam (Demo)/script.js +++ b/Applications/Games/Medieval II: Total War/Steam (Demo)/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); new SteamScript() .name("Medieval II: Total War™ (Demo)") diff --git a/Applications/Games/Medieval II: Total War/Steam/script.js b/Applications/Games/Medieval II: Total War/Steam/script.js index 3f313791ef..472fb23493 100644 --- a/Applications/Games/Medieval II: Total War/Steam/script.js +++ b/Applications/Games/Medieval II: Total War/Steam/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); new SteamScript() .name("Medieval II: Total War™") diff --git a/Applications/Games/Mirror's Edge/Steam/script.js b/Applications/Games/Mirror's Edge/Steam/script.js index 0a31f994e8..31485b018d 100644 --- a/Applications/Games/Mirror's Edge/Steam/script.js +++ b/Applications/Games/Mirror's Edge/Steam/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); include("engines.wine.plugins.managed"); include("engines.wine.verbs.physx"); diff --git a/Applications/Games/Mount & Blade/Steam (Demo)/script.js b/Applications/Games/Mount & Blade/Steam (Demo)/script.js index 4539f0fb8d..dcd1113fe8 100644 --- a/Applications/Games/Mount & Blade/Steam (Demo)/script.js +++ b/Applications/Games/Mount & Blade/Steam (Demo)/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); new SteamScript() .name("Mount & Blade (Demo)") diff --git a/Applications/Games/Mount & Blade/Steam/script.js b/Applications/Games/Mount & Blade/Steam/script.js index fcdf8cd06b..0da8eaaea3 100644 --- a/Applications/Games/Mount & Blade/Steam/script.js +++ b/Applications/Games/Mount & Blade/Steam/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); new SteamScript() .name("Mount & Blade") diff --git a/Applications/Games/Niko: Through The Dream/Steam/script.js b/Applications/Games/Niko: Through The Dream/Steam/script.js index 2abc9e8778..ae4933a52d 100644 --- a/Applications/Games/Niko: Through The Dream/Steam/script.js +++ b/Applications/Games/Niko: Through The Dream/Steam/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); include("engines.wine.plugins.managed"); include("engines.wine.verbs.dotnet40"); diff --git a/Applications/Games/Origin/Local (Legacy)/script.js b/Applications/Games/Origin/Local (Legacy)/script.js index 627be1c292..9a9f1e1344 100644 --- a/Applications/Games/Origin/Local (Legacy)/script.js +++ b/Applications/Games/Origin/Local (Legacy)/script.js @@ -1,6 +1,7 @@ -include("engines.wine.quick_script.local_installer_script"); -include("utils.functions.net.download"); -include("utils.functions.filesystem.extract"); +const LocalInstallerScript = include("engines.wine.quick_script.local_installer_script"); +const Downloader = include("utils.functions.net.download"); +const {Extractor} = include("utils.functions.filesystem.extract"); +const {LATEST_DEVELOPMENT_VERSION} = include("engines.wine.engine.versions"); new LocalInstallerScript() .name("Origin") diff --git a/Applications/Games/Origin/Online (Legacy)/script.js b/Applications/Games/Origin/Online (Legacy)/script.js index 07887bb1cf..2a35ccb8f2 100644 --- a/Applications/Games/Origin/Online (Legacy)/script.js +++ b/Applications/Games/Origin/Online (Legacy)/script.js @@ -1,4 +1,7 @@ -include("engines.wine.quick_script.online_installer_script"); +const OnlineInstallerScript = include("engines.wine.quick_script.online_installer_script"); +const {LATEST_DEVELOPMENT_VERSION} = include("engines.wine.engine.versions"); +const Downloader = include("utils.functions.net.download"); +const {Extractor} = include("utils.functions.filesystem.extract"); new OnlineInstallerScript() .name("Origin") diff --git a/Applications/Games/Origin/Online/script.js b/Applications/Games/Origin/Online/script.js index 3bb3d6aced..379663d0cd 100644 --- a/Applications/Games/Origin/Online/script.js +++ b/Applications/Games/Origin/Online/script.js @@ -1,4 +1,5 @@ -include("engines.wine.quick_script.online_installer_script"); +const OnlineInstallerScript = include("engines.wine.quick_script.online_installer_script"); +const {LATEST_STAGING_VERSION} = include("engines.wine.engine.versions"); new OnlineInstallerScript() .name("Origin") diff --git a/Applications/Games/Orwell: Keeping an Eye On You/Steam (Demo)/script.js b/Applications/Games/Orwell: Keeping an Eye On You/Steam (Demo)/script.js index 40a6c72d2f..0c2dbbffbd 100644 --- a/Applications/Games/Orwell: Keeping an Eye On You/Steam (Demo)/script.js +++ b/Applications/Games/Orwell: Keeping an Eye On You/Steam (Demo)/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); new SteamScript() .name("Orwell: Keeping an Eye On You (Demo)") diff --git a/Applications/Games/Orwell: Keeping an Eye On You/Steam/script.js b/Applications/Games/Orwell: Keeping an Eye On You/Steam/script.js index 4aa1a9d4fa..554ac16f8f 100644 --- a/Applications/Games/Orwell: Keeping an Eye On You/Steam/script.js +++ b/Applications/Games/Orwell: Keeping an Eye On You/Steam/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); new SteamScript() .name("Orwell: Keeping an Eye On You") diff --git a/Applications/Games/Overwatch/Online/script.js b/Applications/Games/Overwatch/Online/script.js index 0ce45ae0f3..bd61d6a9fa 100644 --- a/Applications/Games/Overwatch/Online/script.js +++ b/Applications/Games/Overwatch/Online/script.js @@ -1,4 +1,6 @@ -include("engines.wine.quick_script.online_installer_script"); +const OnlineInstallerScript = include("engines.wine.quick_script.online_installer_script"); +const {LATEST_STAGING_VERSION} = include("engines.wine.engine.versions"); + include("engines.wine.plugins.windows_version"); include("engines.wine.plugins.override_dll"); include("engines.wine.verbs.vcrun2015"); diff --git a/Applications/Games/PAYDAY The Heist/Steam/script.js b/Applications/Games/PAYDAY The Heist/Steam/script.js index 589e95e8e1..7a0d96aae8 100644 --- a/Applications/Games/PAYDAY The Heist/Steam/script.js +++ b/Applications/Games/PAYDAY The Heist/Steam/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); new SteamScript() .name("PAYDAY™ The Heist") diff --git a/Applications/Games/PC Building Simulator/Steam/script.js b/Applications/Games/PC Building Simulator/Steam/script.js index 667b00b1de..99d02d1fdc 100644 --- a/Applications/Games/PC Building Simulator/Steam/script.js +++ b/Applications/Games/PC Building Simulator/Steam/script.js @@ -1,7 +1,9 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); +const {LATEST_DEVELOPMENT_VERSION} = include("engines.wine.engine.versions"); + include("engines.wine.plugins.virtual_desktop"); include("engines.wine.verbs.corefonts"); -include("utils.functions.apps.resources"); + new SteamScript() .name("PC Building Simulator") diff --git a/Applications/Games/Prehistorik/Online/script.js b/Applications/Games/Prehistorik/Online/script.js index e8d35add00..75876049a6 100644 --- a/Applications/Games/Prehistorik/Online/script.js +++ b/Applications/Games/Prehistorik/Online/script.js @@ -1,4 +1,5 @@ -include("engines.wine.quick_script.zip_script"); +const ZipScript = include("engines.wine.quick_script.zip_script"); +const {LATEST_DOS_SUPPORT_VERSION} = include("engines.wine.engine.versions"); new ZipScript() .name("Prehistorik") diff --git a/Applications/Games/Prey/Steam (Demo)/script.js b/Applications/Games/Prey/Steam (Demo)/script.js index 886b82959a..2e436af17b 100644 --- a/Applications/Games/Prey/Steam (Demo)/script.js +++ b/Applications/Games/Prey/Steam (Demo)/script.js @@ -1,4 +1,5 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); +const {LATEST_STAGING_VERSION} = include("engines.wine.engine.versions"); new SteamScript() .name("Prey (Demo)") diff --git a/Applications/Games/Prey/Steam/script.js b/Applications/Games/Prey/Steam/script.js index 2fa6a43ce8..89beac5017 100644 --- a/Applications/Games/Prey/Steam/script.js +++ b/Applications/Games/Prey/Steam/script.js @@ -1,4 +1,5 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); +const {LATEST_STAGING_VERSION} = include("engines.wine.engine.versions"); new SteamScript() .name("Prey") diff --git a/Applications/Games/Prince Of Persia: Original/Online/script.js b/Applications/Games/Prince Of Persia: Original/Online/script.js index 7c5b16fb6f..1036666c8e 100644 --- a/Applications/Games/Prince Of Persia: Original/Online/script.js +++ b/Applications/Games/Prince Of Persia: Original/Online/script.js @@ -1,4 +1,5 @@ -include("engines.wine.quick_script.zip_script"); +const ZipScript = include("engines.wine.quick_script.zip_script"); +const {LATEST_DOS_SUPPORT_VERSION} = include("engines.wine.engine.versions"); new ZipScript() .name("Prince Of Persia: Original") diff --git a/Applications/Games/Prince of Persia: The Sands of Time/Uplay/script.js b/Applications/Games/Prince of Persia: The Sands of Time/Uplay/script.js index 0b49bddc06..ab14bf6c0a 100644 --- a/Applications/Games/Prince of Persia: The Sands of Time/Uplay/script.js +++ b/Applications/Games/Prince of Persia: The Sands of Time/Uplay/script.js @@ -1,4 +1,5 @@ -include("engines.wine.quick_script.uplay_script"); +const UplayScript = include("engines.wine.quick_script.uplay_script"); +const {LATEST_STAGING_VERSION} = include("engines.wine.engine.versions"); new UplayScript() .name("Prince of Persia®: The Sands of Time") diff --git a/Applications/Games/Pro Evolution Soccer 2018/Steam (Demo)/script.js b/Applications/Games/Pro Evolution Soccer 2018/Steam (Demo)/script.js index a7ee79e826..a793f0a772 100644 --- a/Applications/Games/Pro Evolution Soccer 2018/Steam (Demo)/script.js +++ b/Applications/Games/Pro Evolution Soccer 2018/Steam (Demo)/script.js @@ -1,4 +1,5 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); +const {LATEST_STAGING_VERSION} = include("engines.wine.engine.versions"); new SteamScript() .name("Pro Evolution Soccer 2018 (Demo)") diff --git a/Applications/Games/Pro Evolution Soccer 2018/Steam/script.js b/Applications/Games/Pro Evolution Soccer 2018/Steam/script.js index 7fe944a1fb..60af1cc7ab 100644 --- a/Applications/Games/Pro Evolution Soccer 2018/Steam/script.js +++ b/Applications/Games/Pro Evolution Soccer 2018/Steam/script.js @@ -1,4 +1,5 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); +const {LATEST_STAGING_VERSION} = include("engines.wine.engine.versions"); new SteamScript() .name("Pro Evolution Soccer 2018") diff --git a/Applications/Games/Q.U.B.E: Director's Cut/Steam/script.js b/Applications/Games/Q.U.B.E: Director's Cut/Steam/script.js index 39904615a4..533f2c7e67 100644 --- a/Applications/Games/Q.U.B.E: Director's Cut/Steam/script.js +++ b/Applications/Games/Q.U.B.E: Director's Cut/Steam/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); include("engines.wine.verbs.dotnet40"); new SteamScript() diff --git a/Applications/Games/Quantum Conundrum/Steam/script.js b/Applications/Games/Quantum Conundrum/Steam/script.js index 015e09d509..089952c418 100644 --- a/Applications/Games/Quantum Conundrum/Steam/script.js +++ b/Applications/Games/Quantum Conundrum/Steam/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); include("engines.wine.verbs.vcrun2008"); new SteamScript() diff --git a/Applications/Games/Rayman Legends/Steam (Demo)/script.js b/Applications/Games/Rayman Legends/Steam (Demo)/script.js index 1d2c2796c7..4658717b7d 100644 --- a/Applications/Games/Rayman Legends/Steam (Demo)/script.js +++ b/Applications/Games/Rayman Legends/Steam (Demo)/script.js @@ -1,4 +1,6 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); +const {LATEST_STAGING_VERSION} = include("engines.wine.engine.versions"); + include("engines.wine.verbs.uplay"); new SteamScript() diff --git a/Applications/Games/Rayman Legends/Steam/script.js b/Applications/Games/Rayman Legends/Steam/script.js index 1b61b29f67..e6208af6c4 100644 --- a/Applications/Games/Rayman Legends/Steam/script.js +++ b/Applications/Games/Rayman Legends/Steam/script.js @@ -1,4 +1,6 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); +const {LATEST_STAGING_VERSION} = include("engines.wine.engine.versions"); + include("engines.wine.verbs.uplay"); new SteamScript() diff --git a/Applications/Games/Rayman Origins/Uplay/script.js b/Applications/Games/Rayman Origins/Uplay/script.js index 7b6268a1a0..413e959151 100644 --- a/Applications/Games/Rayman Origins/Uplay/script.js +++ b/Applications/Games/Rayman Origins/Uplay/script.js @@ -1,4 +1,5 @@ -include("engines.wine.quick_script.uplay_script"); +const UplayScript = include("engines.wine.quick_script.uplay_script"); +const {LATEST_STAGING_VERSION} = include("engines.wine.engine.versions"); new UplayScript() .name("Rayman® Origins") diff --git a/Applications/Games/Red Trigger/Steam/script.js b/Applications/Games/Red Trigger/Steam/script.js index 8a8bded72f..4c534fd5d4 100644 --- a/Applications/Games/Red Trigger/Steam/script.js +++ b/Applications/Games/Red Trigger/Steam/script.js @@ -1,4 +1,5 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); +const {LATEST_STAGING_VERSION} = include("engines.wine.engine.versions"); new SteamScript() .name("Red Trigger") diff --git a/Applications/Games/Resident Evil 3/Local/script.js b/Applications/Games/Resident Evil 3/Local/script.js index 33313ffe56..15a694bce7 100644 --- a/Applications/Games/Resident Evil 3/Local/script.js +++ b/Applications/Games/Resident Evil 3/Local/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.local_installer_script"); +const LocalInstallerScript = include("engines.wine.quick_script.local_installer_script"); new LocalInstallerScript() .name("Resident Evil 3") diff --git a/Applications/Games/RimWorld/Local/script.js b/Applications/Games/RimWorld/Local/script.js index 16acc71fea..950289572b 100644 --- a/Applications/Games/RimWorld/Local/script.js +++ b/Applications/Games/RimWorld/Local/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.local_installer_script"); +const LocalInstallerScript = include("engines.wine.quick_script.local_installer_script"); include("engines.wine.verbs.vcrun2017"); include("engines.wine.verbs.d3dx9"); include("engines.wine.verbs.corefonts"); diff --git a/Applications/Games/RimWorld/Steam/script.js b/Applications/Games/RimWorld/Steam/script.js index 752d9ed7f1..90c3da90b5 100644 --- a/Applications/Games/RimWorld/Steam/script.js +++ b/Applications/Games/RimWorld/Steam/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); include("engines.wine.verbs.vcrun2017"); include("engines.wine.verbs.d3dx9"); include("engines.wine.verbs.corefonts"); diff --git a/Applications/Games/Road Rash/Online/script.js b/Applications/Games/Road Rash/Online/script.js index ab15f12f1a..f857f1c7a4 100644 --- a/Applications/Games/Road Rash/Online/script.js +++ b/Applications/Games/Road Rash/Online/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.zip_script"); +const ZipScript = include("engines.wine.quick_script.zip_script"); include("engines.wine.plugins.regedit"); new ZipScript() diff --git a/Applications/Games/Rocksmith 2014/Steam/script.js b/Applications/Games/Rocksmith 2014/Steam/script.js index 0d68b48caf..361a6ff5e2 100644 --- a/Applications/Games/Rocksmith 2014/Steam/script.js +++ b/Applications/Games/Rocksmith 2014/Steam/script.js @@ -1,6 +1,7 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); +const {writeToFile} = include("utils.functions.filesystem.files"); + include("engines.wine.plugins.sound_driver"); -include("utils.functions.filesystem.files"); function fixIni(ini) { var screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize(); diff --git a/Applications/Games/Rocksmith/Steam/script.js b/Applications/Games/Rocksmith/Steam/script.js index e7065a2d0e..a04067d098 100644 --- a/Applications/Games/Rocksmith/Steam/script.js +++ b/Applications/Games/Rocksmith/Steam/script.js @@ -1,6 +1,7 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); +const {writeToFile} = include("utils.functions.filesystem.files"); + include("engines.wine.plugins.sound_driver"); -include("utils.functions.filesystem.files"); function fixIni(ini) { var screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize(); diff --git a/Applications/Games/STAR WARS - Empire at War - Gold Pack/Local/script.js b/Applications/Games/STAR WARS - Empire at War - Gold Pack/Local/script.js index 405c3a3e49..d265e1c33d 100644 --- a/Applications/Games/STAR WARS - Empire at War - Gold Pack/Local/script.js +++ b/Applications/Games/STAR WARS - Empire at War - Gold Pack/Local/script.js @@ -1,7 +1,7 @@ -include("engines.wine.quick_script.local_installer_script"); +const LocalInstallerScript = include("engines.wine.quick_script.local_installer_script"); +const Downloader = include("utils.functions.net.download"); + include("engines.wine.verbs.d3dx9"); -include("engines.wine.engine.object"); -include("utils.functions.filesystem.files"); new LocalInstallerScript() .name("STAR WARS™ Empire at War: Gold Pack") @@ -9,7 +9,7 @@ new LocalInstallerScript() .author("ImperatorS79") .category("Games") .executable("LaunchEAW.exe") - .preInstall(function (wine, wizard) { + .preInstall(function (wine/*, wizard */) { wine.d3dx9(); }) .postInstall(function (wine, wizard) { diff --git a/Applications/Games/STAR WARS - Empire at War - Gold Pack/Steam/script.js b/Applications/Games/STAR WARS - Empire at War - Gold Pack/Steam/script.js index 4031bf54a2..8cebbd2e77 100644 --- a/Applications/Games/STAR WARS - Empire at War - Gold Pack/Steam/script.js +++ b/Applications/Games/STAR WARS - Empire at War - Gold Pack/Steam/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); include("engines.wine.verbs.d3dx9"); new SteamScript() diff --git a/Applications/Games/STAR WARS Battlefront II/Local/script.js b/Applications/Games/STAR WARS Battlefront II/Local/script.js index 2ad2927c15..1619ee0887 100644 --- a/Applications/Games/STAR WARS Battlefront II/Local/script.js +++ b/Applications/Games/STAR WARS Battlefront II/Local/script.js @@ -1,6 +1,5 @@ -include("engines.wine.quick_script.local_installer_script"); -include("engines.wine.engine.object"); -include("utils.functions.filesystem.files"); +const LocalInstallerScript = include("engines.wine.quick_script.local_installer_script"); +const Downloader = include("utils.functions.net.download"); new LocalInstallerScript() .name("STAR WARS™ Battlefront™ II") diff --git a/Applications/Games/STAR WARS Battlefront II/Steam/script.js b/Applications/Games/STAR WARS Battlefront II/Steam/script.js index 936aaf1583..0fdb66d642 100644 --- a/Applications/Games/STAR WARS Battlefront II/Steam/script.js +++ b/Applications/Games/STAR WARS Battlefront II/Steam/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); new SteamScript() .name("STAR WARS™ Battlefront™ II") diff --git a/Applications/Games/STAR WARS Jedi Knight - Jedi Academy/Steam/script.js b/Applications/Games/STAR WARS Jedi Knight - Jedi Academy/Steam/script.js index 1d9cb0f20f..05b607cafe 100644 --- a/Applications/Games/STAR WARS Jedi Knight - Jedi Academy/Steam/script.js +++ b/Applications/Games/STAR WARS Jedi Knight - Jedi Academy/Steam/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); new SteamScript() .name("STAR WARS™ Jedi Knight - Jedi Academy™") diff --git a/Applications/Games/STAR WARS Jedi Knight - Mysteries of the Sith/Steam/script.js b/Applications/Games/STAR WARS Jedi Knight - Mysteries of the Sith/Steam/script.js index fe6ff04668..dd195d1e2a 100644 --- a/Applications/Games/STAR WARS Jedi Knight - Mysteries of the Sith/Steam/script.js +++ b/Applications/Games/STAR WARS Jedi Knight - Mysteries of the Sith/Steam/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); new SteamScript() .name("STAR WARS™ Jedi Knight - Mysteries of the Sith™") diff --git a/Applications/Games/STAR WARS Jedi Knight II - Jedi Outcast/Steam/script.js b/Applications/Games/STAR WARS Jedi Knight II - Jedi Outcast/Steam/script.js index ac414113f6..6c6af05dd3 100644 --- a/Applications/Games/STAR WARS Jedi Knight II - Jedi Outcast/Steam/script.js +++ b/Applications/Games/STAR WARS Jedi Knight II - Jedi Outcast/Steam/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); new SteamScript() .name("STAR WARS™ Jedi Knight II - Jedi Outcast™") diff --git a/Applications/Games/STAR WARS Jedi Knight: Dark Forces II/Steam/script.js b/Applications/Games/STAR WARS Jedi Knight: Dark Forces II/Steam/script.js index e9a55fad5b..51c32724d7 100644 --- a/Applications/Games/STAR WARS Jedi Knight: Dark Forces II/Steam/script.js +++ b/Applications/Games/STAR WARS Jedi Knight: Dark Forces II/Steam/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); new SteamScript() .name("STAR WARS™ Jedi Knight: Dark Forces II") diff --git a/Applications/Games/STAR WARS: Dark Forces/Steam/script.js b/Applications/Games/STAR WARS: Dark Forces/Steam/script.js index 5ac681bef7..e68f5a452d 100644 --- a/Applications/Games/STAR WARS: Dark Forces/Steam/script.js +++ b/Applications/Games/STAR WARS: Dark Forces/Steam/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); new SteamScript() .name("STAR WARS™: Dark Forces") diff --git a/Applications/Games/STAR WARS: The Old Republic/Online/script.js b/Applications/Games/STAR WARS: The Old Republic/Online/script.js index 5e42b2bb00..fa807d6d67 100644 --- a/Applications/Games/STAR WARS: The Old Republic/Online/script.js +++ b/Applications/Games/STAR WARS: The Old Republic/Online/script.js @@ -1,6 +1,8 @@ -include("engines.wine.quick_script.online_installer_script"); +const OnlineInstallerScript = include("engines.wine.quick_script.online_installer_script"); +const {writeToFile} = include("utils.functions.filesystem.files"); +const {LATEST_STAGING_VERSION} = include("engines.wine.engine.versions"); + include("engines.wine.verbs.d3dx9"); -include("utils.functions.filesystem.files"); new OnlineInstallerScript() .name("STAR WARS™: The Old Republic") diff --git a/Applications/Games/Scribblenauts Unlimited/Steam/script.js b/Applications/Games/Scribblenauts Unlimited/Steam/script.js index 9c8d5ecaf6..848fe04770 100644 --- a/Applications/Games/Scribblenauts Unlimited/Steam/script.js +++ b/Applications/Games/Scribblenauts Unlimited/Steam/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); new SteamScript() .name("Scribblenauts Unlimited") diff --git a/Applications/Games/Shower With Your Dad Simulator 2015: Do You Still Shower With Your Dad/Steam/script.js b/Applications/Games/Shower With Your Dad Simulator 2015: Do You Still Shower With Your Dad/Steam/script.js index 1b874ce9e1..80a08730e5 100644 --- a/Applications/Games/Shower With Your Dad Simulator 2015: Do You Still Shower With Your Dad/Steam/script.js +++ b/Applications/Games/Shower With Your Dad Simulator 2015: Do You Still Shower With Your Dad/Steam/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); new SteamScript() .name("Shower With Your Dad Simulator 2015: Do You Still Shower With Your Dad?") diff --git a/Applications/Games/SimCity (2013)/Local/script.js b/Applications/Games/SimCity (2013)/Local/script.js index 54355dc4cf..f66fb1dca9 100644 --- a/Applications/Games/SimCity (2013)/Local/script.js +++ b/Applications/Games/SimCity (2013)/Local/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.local_installer_script"); +const LocalInstallerScript = include("engines.wine.quick_script.local_installer_script"); new LocalInstallerScript() .name("SimCity (2013)") diff --git a/Applications/Games/SimCity (2013)/Origin/script.js b/Applications/Games/SimCity (2013)/Origin/script.js index 524105c0b3..d18ade1ec8 100644 --- a/Applications/Games/SimCity (2013)/Origin/script.js +++ b/Applications/Games/SimCity (2013)/Origin/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.origin_script"); +const OriginScript = include("engines.wine.quick_script.origin_script"); new OriginScript() .name("SimCity (2013)") diff --git a/Applications/Games/Space Colony/Local/script.js b/Applications/Games/Space Colony/Local/script.js index 3e54e74e46..36a41ee508 100644 --- a/Applications/Games/Space Colony/Local/script.js +++ b/Applications/Games/Space Colony/Local/script.js @@ -1,5 +1,6 @@ -include("engines.wine.quick_script.local_installer_script"); -include("utils.functions.net.resource"); +const LocalInstallerScript = include("engines.wine.quick_script.local_installer_script"); +const Resource = include("utils.functions.net.resource"); +const {LATEST_DEVELOPMENT_VERSION} = include("engines.wine.engine.versions"); new LocalInstallerScript() .name("Space Colony") diff --git a/Applications/Games/Space Colony/Steam/script.js b/Applications/Games/Space Colony/Steam/script.js index c9c798d9d3..f46597bd02 100644 --- a/Applications/Games/Space Colony/Steam/script.js +++ b/Applications/Games/Space Colony/Steam/script.js @@ -1,4 +1,6 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); +const {LATEST_DEVELOPMENT_VERSION} = include("engines.wine.engine.versions"); + include("engines.wine.verbs.vcrun2010"); include("engines.wine.verbs.dotnet40"); include("engines.wine.verbs.d3dx9"); diff --git a/Applications/Games/Space Engineers/Steam/script.js b/Applications/Games/Space Engineers/Steam/script.js index e3cbce9c80..2179ddf4c6 100644 --- a/Applications/Games/Space Engineers/Steam/script.js +++ b/Applications/Games/Space Engineers/Steam/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); include("engines.wine.verbs.dotnet472"); include("engines.wine.verbs.vcrun2017"); include("engines.wine.verbs.dxvk"); diff --git a/Applications/Games/Spore/Origin/script.js b/Applications/Games/Spore/Origin/script.js index a7b05ea7b1..40c34a2640 100644 --- a/Applications/Games/Spore/Origin/script.js +++ b/Applications/Games/Spore/Origin/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.origin_script"); +const OriginScript = include("engines.wine.quick_script.origin_script"); new OriginScript() .name("Spore") diff --git a/Applications/Games/Spore/Steam/script.js b/Applications/Games/Spore/Steam/script.js index afb504f821..329fd64a98 100644 --- a/Applications/Games/Spore/Steam/script.js +++ b/Applications/Games/Spore/Steam/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); new SteamScript() .name("Spore") diff --git a/Applications/Games/Sprouts Adventure/Local/script.js b/Applications/Games/Sprouts Adventure/Local/script.js index 0f414156b4..84255cbe93 100644 --- a/Applications/Games/Sprouts Adventure/Local/script.js +++ b/Applications/Games/Sprouts Adventure/Local/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.local_installer_script"); +const LocalInstallerScript = include("engines.wine.quick_script.local_installer_script"); include("engines.wine.verbs.vcrun2005"); new LocalInstallerScript() diff --git a/Applications/Games/Star Craft II/Online/script.js b/Applications/Games/Star Craft II/Online/script.js index 636d54d1c6..1cec491f82 100644 --- a/Applications/Games/Star Craft II/Online/script.js +++ b/Applications/Games/Star Craft II/Online/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.online_installer_script"); +const OnlineInstallerScript = include("engines.wine.quick_script.online_installer_script"); include("engines.wine.verbs.vcrun2015"); include("engines.wine.verbs.corefonts"); diff --git a/Applications/Games/Star Trek Online/Steam/script.js b/Applications/Games/Star Trek Online/Steam/script.js index 4aeb2d8aba..907fbcc836 100644 --- a/Applications/Games/Star Trek Online/Steam/script.js +++ b/Applications/Games/Star Trek Online/Steam/script.js @@ -1,4 +1,5 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); +const {LATEST_STAGING_VERSION} = include("engines.wine.engine.versions"); new SteamScript() .name("Star Trek Online") diff --git a/Applications/Games/Steam/Online/script.js b/Applications/Games/Steam/Online/script.js index 1b6e53e012..795b0b4027 100644 --- a/Applications/Games/Steam/Online/script.js +++ b/Applications/Games/Steam/Online/script.js @@ -1,4 +1,6 @@ -include("engines.wine.quick_script.online_installer_script"); +const OnlineInstallerScript = include("engines.wine.quick_script.online_installer_script"); +const {LATEST_STAGING_VERSION} = include("engines.wine.engine.versions"); + include("engines.wine.verbs.corefonts"); include("engines.wine.plugins.windows_version"); diff --git a/Applications/Games/Styx: Shards of Darkness/Steam (Demo)/script.js b/Applications/Games/Styx: Shards of Darkness/Steam (Demo)/script.js index 7f97f60906..e213ccc5c5 100644 --- a/Applications/Games/Styx: Shards of Darkness/Steam (Demo)/script.js +++ b/Applications/Games/Styx: Shards of Darkness/Steam (Demo)/script.js @@ -1,4 +1,5 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); +const {LATEST_STAGING_VERSION} = include("engines.wine.engine.versions"); new SteamScript() .name("Styx: Shards of Darkness (Demo)") diff --git a/Applications/Games/Styx: Shards of Darkness/Steam/script.js b/Applications/Games/Styx: Shards of Darkness/Steam/script.js index 43ddef266b..d6393dae22 100644 --- a/Applications/Games/Styx: Shards of Darkness/Steam/script.js +++ b/Applications/Games/Styx: Shards of Darkness/Steam/script.js @@ -1,4 +1,5 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); +const {LATEST_STAGING_VERSION} = include("engines.wine.engine.versions"); new SteamScript() .name("Styx: Shards of Darkness") diff --git a/Applications/Games/Subnautica Below Zero/Steam/script.js b/Applications/Games/Subnautica Below Zero/Steam/script.js index 176ffc18ae..f6fd089332 100644 --- a/Applications/Games/Subnautica Below Zero/Steam/script.js +++ b/Applications/Games/Subnautica Below Zero/Steam/script.js @@ -1,9 +1,10 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); +const {LATEST_STABLE_VERSION} = include("engines.wine.engine.versions"); + include("engines.wine.plugins.virtual_desktop"); include("engines.wine.verbs.vcrun2013"); include("engines.wine.verbs.corefonts"); include("engines.wine.verbs.dxvk"); -include("utils.functions.apps.resources"); new SteamScript() .name("Subnautica Below Zero") diff --git a/Applications/Games/Subnautica/Steam/script.js b/Applications/Games/Subnautica/Steam/script.js index 4534f2bdf1..15bd4550a5 100644 --- a/Applications/Games/Subnautica/Steam/script.js +++ b/Applications/Games/Subnautica/Steam/script.js @@ -1,9 +1,10 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); +const {LATEST_STABLE_VERSION} = include("engines.wine.engine.versions"); + include("engines.wine.plugins.virtual_desktop"); include("engines.wine.verbs.vcrun2013"); include("engines.wine.verbs.corefonts"); include("engines.wine.verbs.dxvk"); -include("utils.functions.apps.resources"); new SteamScript() .name("Subnautica") diff --git a/Applications/Games/Super Blue Boy Planet/Steam/script.js b/Applications/Games/Super Blue Boy Planet/Steam/script.js index b7add549c6..02a27dd1b5 100644 --- a/Applications/Games/Super Blue Boy Planet/Steam/script.js +++ b/Applications/Games/Super Blue Boy Planet/Steam/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); new SteamScript() .name("Super Blue Boy Planet") diff --git a/Applications/Games/TRON RUNr/Steam (Demo)/script.js b/Applications/Games/TRON RUNr/Steam (Demo)/script.js index 3f2a9a11aa..a64da35482 100644 --- a/Applications/Games/TRON RUNr/Steam (Demo)/script.js +++ b/Applications/Games/TRON RUNr/Steam (Demo)/script.js @@ -1,4 +1,5 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); +const {LATEST_STAGING_VERSION} = include("engines.wine.engine.versions"); new SteamScript() .name("TRON RUN/r (Demo)") diff --git a/Applications/Games/TRON RUNr/Steam/script.js b/Applications/Games/TRON RUNr/Steam/script.js index ce7347231b..037a8c6345 100644 --- a/Applications/Games/TRON RUNr/Steam/script.js +++ b/Applications/Games/TRON RUNr/Steam/script.js @@ -1,4 +1,5 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); +const {LATEST_STAGING_VERSION} = include("engines.wine.engine.versions"); new SteamScript() .name("TRON RUN/r") diff --git a/Applications/Games/Teenagent/GOG/script.js b/Applications/Games/Teenagent/GOG/script.js index e3bf32d6a6..bcdf3c9284 100644 --- a/Applications/Games/Teenagent/GOG/script.js +++ b/Applications/Games/Teenagent/GOG/script.js @@ -1,4 +1,5 @@ -include("engines.wine.quick_script.gog_script"); +const GogScript = include("engines.wine.quick_script.gog_script"); +const {LATEST_DOS_SUPPORT_VERSION} = include("engines.wine.engine.versions"); new GogScript() .name("Teenagent") diff --git a/Applications/Games/The Crew/Steam (Demo)/script.js b/Applications/Games/The Crew/Steam (Demo)/script.js index d5a944efb2..ac1e766825 100644 --- a/Applications/Games/The Crew/Steam (Demo)/script.js +++ b/Applications/Games/The Crew/Steam (Demo)/script.js @@ -1,4 +1,5 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); +const {LATEST_STAGING_VERSION} = include("engines.wine.engine.versions"); new SteamScript() .name("The Crew™ (Demo)") diff --git a/Applications/Games/The Crew/Steam/script.js b/Applications/Games/The Crew/Steam/script.js index 32ce14ca75..d3f884a833 100644 --- a/Applications/Games/The Crew/Steam/script.js +++ b/Applications/Games/The Crew/Steam/script.js @@ -1,4 +1,5 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); +const {LATEST_STAGING_VERSION} = include("engines.wine.engine.versions"); new SteamScript() .name("The Crew™") diff --git a/Applications/Games/The Elder Scrolls I: Arena/Online/script.js b/Applications/Games/The Elder Scrolls I: Arena/Online/script.js index aa3352fb31..9bb2637e2a 100644 --- a/Applications/Games/The Elder Scrolls I: Arena/Online/script.js +++ b/Applications/Games/The Elder Scrolls I: Arena/Online/script.js @@ -1,6 +1,8 @@ -include("engines.wine.quick_script.zip_script"); +const ZipScript = include("engines.wine.quick_script.zip_script"); +const {writeToFile} = include("utils.functions.filesystem.files"); +const {LATEST_DOS_SUPPORT_VERSION} = include("engines.wine.engine.versions"); + include("engines.wine.plugins.dos_support"); -include("utils.functions.filesystem.files"); new ZipScript() .name("The Elder Scroll 1: Arena") diff --git a/Applications/Games/The Elder Scrolls IV: Oblivion/Local/script.js b/Applications/Games/The Elder Scrolls IV: Oblivion/Local/script.js index 1caa63a404..0247dc084c 100644 --- a/Applications/Games/The Elder Scrolls IV: Oblivion/Local/script.js +++ b/Applications/Games/The Elder Scrolls IV: Oblivion/Local/script.js @@ -1,4 +1,5 @@ -include("engines.wine.quick_script.local_installer_script"); +const LocalInstallerScript = include("engines.wine.quick_script.local_installer_script"); +const {LATEST_STAGING_VERSION} = include("engines.wine.engine.versions"); new LocalInstallerScript() .name("The Elder Scrolls IV: Oblivion") diff --git a/Applications/Games/The Elder Scrolls IV: Oblivion/Steam/script.js b/Applications/Games/The Elder Scrolls IV: Oblivion/Steam/script.js index edc73c6591..f1d7eba7b2 100644 --- a/Applications/Games/The Elder Scrolls IV: Oblivion/Steam/script.js +++ b/Applications/Games/The Elder Scrolls IV: Oblivion/Steam/script.js @@ -1,4 +1,5 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); +const {LATEST_STAGING_VERSION} = include("engines.wine.engine.versions"); new SteamScript() .name("The Elder Scrolls IV: Oblivion") diff --git a/Applications/Games/The Elder Scrolls V: Skyrim/Steam/script.js b/Applications/Games/The Elder Scrolls V: Skyrim/Steam/script.js index 38f52494f0..108e97a030 100644 --- a/Applications/Games/The Elder Scrolls V: Skyrim/Steam/script.js +++ b/Applications/Games/The Elder Scrolls V: Skyrim/Steam/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); new SteamScript() .name("The Elder Scrolls V: Skyrim") diff --git a/Applications/Games/The Room Two/Steam/script.js b/Applications/Games/The Room Two/Steam/script.js index 19753cdd97..52e6ba2445 100644 --- a/Applications/Games/The Room Two/Steam/script.js +++ b/Applications/Games/The Room Two/Steam/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); new SteamScript() .name("The Room Two") diff --git a/Applications/Games/The Room/Steam/script.js b/Applications/Games/The Room/Steam/script.js index 7153c7e2d8..adc0e72f6a 100644 --- a/Applications/Games/The Room/Steam/script.js +++ b/Applications/Games/The Room/Steam/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); new SteamScript() .name("The Room") diff --git a/Applications/Games/The Sims 3/Local/script.js b/Applications/Games/The Sims 3/Local/script.js index b2db9d9bc5..bcfee1977c 100644 --- a/Applications/Games/The Sims 3/Local/script.js +++ b/Applications/Games/The Sims 3/Local/script.js @@ -1,4 +1,5 @@ -include("engines.wine.quick_script.local_installer_script"); +const LocalInstallerScript = include("engines.wine.quick_script.local_installer_script"); + include("engines.wine.verbs.vcrun2010"); include("engines.wine.verbs.tahoma"); include("engines.wine.verbs.mfc42"); diff --git a/Applications/Games/The Sims 3/Steam/script.js b/Applications/Games/The Sims 3/Steam/script.js index 4bddda15c4..71a44b4094 100644 --- a/Applications/Games/The Sims 3/Steam/script.js +++ b/Applications/Games/The Sims 3/Steam/script.js @@ -1,4 +1,5 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); + include("engines.wine.verbs.dotnet20"); include("engines.wine.verbs.vcrun2010"); include("engines.wine.verbs.tahoma"); diff --git a/Applications/Games/The Sims/Local/script.js b/Applications/Games/The Sims/Local/script.js index 4023e418f5..f69792114d 100644 --- a/Applications/Games/The Sims/Local/script.js +++ b/Applications/Games/The Sims/Local/script.js @@ -1,4 +1,5 @@ -include("engines.wine.quick_script.local_installer_script"); +const LocalInstallerScript = include("engines.wine.quick_script.local_installer_script"); +const {LATEST_STAGING_VERSION} = include("engines.wine.engine.versions"); new LocalInstallerScript() .name("The Sims") diff --git a/Applications/Games/The Turing Test/Steam/script.js b/Applications/Games/The Turing Test/Steam/script.js index 6afd74f5d9..ab50d28a33 100644 --- a/Applications/Games/The Turing Test/Steam/script.js +++ b/Applications/Games/The Turing Test/Steam/script.js @@ -1,4 +1,5 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); +const {LATEST_DEVELOPMENT_VERSION} = include("engines.wine.engine.versions"); new SteamScript() .name("The Turing Test") diff --git a/Applications/Games/The Vanishing of Ethan Carter Redux/Steam/script.js b/Applications/Games/The Vanishing of Ethan Carter Redux/Steam/script.js index 6f80808a48..244bd4153c 100644 --- a/Applications/Games/The Vanishing of Ethan Carter Redux/Steam/script.js +++ b/Applications/Games/The Vanishing of Ethan Carter Redux/Steam/script.js @@ -1,4 +1,5 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); +const {LATEST_STAGING_VERSION} = include("engines.wine.engine.versions"); new SteamScript() .name("The Vanishing of Ethan Carter Redux") diff --git a/Applications/Games/The Vanishing of Ethan Carter/Steam/script.js b/Applications/Games/The Vanishing of Ethan Carter/Steam/script.js index a9426e7514..85c6a5a384 100644 --- a/Applications/Games/The Vanishing of Ethan Carter/Steam/script.js +++ b/Applications/Games/The Vanishing of Ethan Carter/Steam/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); new SteamScript() .name("The Vanishing of Ethan Carter") diff --git a/Applications/Games/The Witcher 3: Wild Hunt/Steam/script.js b/Applications/Games/The Witcher 3: Wild Hunt/Steam/script.js index 8383912991..4056cfdd9b 100644 --- a/Applications/Games/The Witcher 3: Wild Hunt/Steam/script.js +++ b/Applications/Games/The Witcher 3: Wild Hunt/Steam/script.js @@ -1,4 +1,6 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); +const {LATEST_STAGING_VERSION} = include("engines.wine.engine.versions"); + include("engines.wine.verbs.dxvk"); new SteamScript() diff --git a/Applications/Games/The Witness/Steam/script.js b/Applications/Games/The Witness/Steam/script.js index db23661e5a..eaf64444ec 100644 --- a/Applications/Games/The Witness/Steam/script.js +++ b/Applications/Games/The Witness/Steam/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); new SteamScript() .name("The Witness") diff --git a/Applications/Games/Toki Tori/Steam (Demo)/script.js b/Applications/Games/Toki Tori/Steam (Demo)/script.js index 431bb96679..221a4725d9 100644 --- a/Applications/Games/Toki Tori/Steam (Demo)/script.js +++ b/Applications/Games/Toki Tori/Steam (Demo)/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); new SteamScript() .name("Toki Tori (Demo)") diff --git a/Applications/Games/Toki Tori/Steam/script.js b/Applications/Games/Toki Tori/Steam/script.js index e961924b7e..73f2743de9 100644 --- a/Applications/Games/Toki Tori/Steam/script.js +++ b/Applications/Games/Toki Tori/Steam/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); new SteamScript() .name("Toki Tori") diff --git a/Applications/Games/Tom Clancy's Rainbow Six 3 : Raven Shield/Local (1.0->1.6)/script.js b/Applications/Games/Tom Clancy's Rainbow Six 3 : Raven Shield/Local (1.0->1.6)/script.js index 776bb98a64..5c3ba73d58 100644 --- a/Applications/Games/Tom Clancy's Rainbow Six 3 : Raven Shield/Local (1.0->1.6)/script.js +++ b/Applications/Games/Tom Clancy's Rainbow Six 3 : Raven Shield/Local (1.0->1.6)/script.js @@ -1,4 +1,6 @@ -include("engines.wine.quick_script.local_installer_script"); +const LocalInstallerScript = include("engines.wine.quick_script.local_installer_script"); +const Downloader = include("utils.functions.net.download"); + include("engines.wine.plugins.virtual_desktop"); new LocalInstallerScript() diff --git a/Applications/Games/Tom Clancy's Rainbow Six 3 : Raven Shield/Steam (Gold)/script.js b/Applications/Games/Tom Clancy's Rainbow Six 3 : Raven Shield/Steam (Gold)/script.js index 918f1fbfcd..ab6604be2b 100644 --- a/Applications/Games/Tom Clancy's Rainbow Six 3 : Raven Shield/Steam (Gold)/script.js +++ b/Applications/Games/Tom Clancy's Rainbow Six 3 : Raven Shield/Steam (Gold)/script.js @@ -1,4 +1,5 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); + include("engines.wine.plugins.virtual_desktop"); new SteamScript() diff --git a/Applications/Games/Tom Clancy's Splinter Cell/Uplay/script.js b/Applications/Games/Tom Clancy's Splinter Cell/Uplay/script.js index 843473403e..dc498e1d36 100644 --- a/Applications/Games/Tom Clancy's Splinter Cell/Uplay/script.js +++ b/Applications/Games/Tom Clancy's Splinter Cell/Uplay/script.js @@ -1,4 +1,5 @@ -include("engines.wine.quick_script.uplay_script"); +const UplayScript = include("engines.wine.quick_script.uplay_script"); +const {LATEST_STAGING_VERSION} = include("engines.wine.engine.versions"); new UplayScript() .name("Tom Clancy's Splinter Cell®") diff --git a/Applications/Games/Tom Clancy's The Division/Steam (Demo)/script.js b/Applications/Games/Tom Clancy's The Division/Steam (Demo)/script.js index 76305c9aa3..a8e18666ce 100644 --- a/Applications/Games/Tom Clancy's The Division/Steam (Demo)/script.js +++ b/Applications/Games/Tom Clancy's The Division/Steam (Demo)/script.js @@ -1,4 +1,6 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); +const {LATEST_STAGING_VERSION} = include("engines.wine.engine.versions"); + include("engines.wine.verbs.uplay"); new SteamScript() diff --git a/Applications/Games/Tom Clancy's The Division/Steam/script.js b/Applications/Games/Tom Clancy's The Division/Steam/script.js index 3a8c2cc360..55bd0c6463 100644 --- a/Applications/Games/Tom Clancy's The Division/Steam/script.js +++ b/Applications/Games/Tom Clancy's The Division/Steam/script.js @@ -1,4 +1,6 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); +const {LATEST_STAGING_VERSION} = include("engines.wine.engine.versions"); + include("engines.wine.verbs.uplay"); new SteamScript() diff --git a/Applications/Games/Tomb Raider Anniversary/Steam (Demo)/script.js b/Applications/Games/Tomb Raider Anniversary/Steam (Demo)/script.js index d5105cdd88..55fe9b14e4 100644 --- a/Applications/Games/Tomb Raider Anniversary/Steam (Demo)/script.js +++ b/Applications/Games/Tomb Raider Anniversary/Steam (Demo)/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); new SteamScript() .name("Tomb Raider: Anniversary (Demo)") diff --git a/Applications/Games/Tomb Raider Anniversary/Steam/script.js b/Applications/Games/Tomb Raider Anniversary/Steam/script.js index 02d68c3caf..e909286291 100644 --- a/Applications/Games/Tomb Raider Anniversary/Steam/script.js +++ b/Applications/Games/Tomb Raider Anniversary/Steam/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); new SteamScript() .name("Tomb Raider: Anniversary") diff --git a/Applications/Games/Tomb Raider Legend/Steam (Demo)/script.js b/Applications/Games/Tomb Raider Legend/Steam (Demo)/script.js index 88eb41a98f..c270352ccd 100644 --- a/Applications/Games/Tomb Raider Legend/Steam (Demo)/script.js +++ b/Applications/Games/Tomb Raider Legend/Steam (Demo)/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); new SteamScript() .name("Tomb Raider: Legend (Demo)") diff --git a/Applications/Games/Tomb Raider Legend/Steam/script.js b/Applications/Games/Tomb Raider Legend/Steam/script.js index 698677e915..fb60c60528 100644 --- a/Applications/Games/Tomb Raider Legend/Steam/script.js +++ b/Applications/Games/Tomb Raider Legend/Steam/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); new SteamScript() .name("Tomb Raider: Legend") diff --git a/Applications/Games/Tomb Raider Underworld/Steam (Demo)/script.js b/Applications/Games/Tomb Raider Underworld/Steam (Demo)/script.js index 173f56adbf..5f03cfa075 100644 --- a/Applications/Games/Tomb Raider Underworld/Steam (Demo)/script.js +++ b/Applications/Games/Tomb Raider Underworld/Steam (Demo)/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); new SteamScript() .name("Tomb Raider: Underworld (Demo)") diff --git a/Applications/Games/Tomb Raider Underworld/Steam/script.js b/Applications/Games/Tomb Raider Underworld/Steam/script.js index 2f7074c150..45724eb2d1 100644 --- a/Applications/Games/Tomb Raider Underworld/Steam/script.js +++ b/Applications/Games/Tomb Raider Underworld/Steam/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); new SteamScript() .name("Tomb Raider: Underworld") diff --git a/Applications/Games/Tomb Raider: The Dagger Of Xian/Local (Demo)/script.js b/Applications/Games/Tomb Raider: The Dagger Of Xian/Local (Demo)/script.js index 005e52f75d..a10e91c257 100644 --- a/Applications/Games/Tomb Raider: The Dagger Of Xian/Local (Demo)/script.js +++ b/Applications/Games/Tomb Raider: The Dagger Of Xian/Local (Demo)/script.js @@ -1,4 +1,5 @@ -include("engines.wine.quick_script.local_installer_script"); +const LocalInstallerScript = include("engines.wine.quick_script.local_installer_script"); +const {LATEST_STAGING_VERSION} = include("engines.wine.engine.versions"); new LocalInstallerScript() .name("Tomb Raider: The Dagger Of Xian (Demo)") diff --git a/Applications/Games/Tomb Raider: The Dagger Of Xian/Online (Demo)/script.js b/Applications/Games/Tomb Raider: The Dagger Of Xian/Online (Demo)/script.js index 9f0f884580..2f9ddd8542 100644 --- a/Applications/Games/Tomb Raider: The Dagger Of Xian/Online (Demo)/script.js +++ b/Applications/Games/Tomb Raider: The Dagger Of Xian/Online (Demo)/script.js @@ -1,4 +1,5 @@ -include("engines.wine.quick_script.online_installer_script"); +const OnlineInstallerScript = include("engines.wine.quick_script.online_installer_script"); +const {LATEST_STAGING_VERSION} = include("engines.wine.engine.versions"); new OnlineInstallerScript() .name("Tomb Raider: The Dagger Of Xian (Demo)") diff --git a/Applications/Games/Total War Rome II/Steam/script.js b/Applications/Games/Total War Rome II/Steam/script.js index 81d6e08c7b..67586821df 100644 --- a/Applications/Games/Total War Rome II/Steam/script.js +++ b/Applications/Games/Total War Rome II/Steam/script.js @@ -1,4 +1,6 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); +const {LATEST_STAGING_VERSION} = include("engines.wine.engine.versions"); + include("engines.wine.verbs.d3dx9"); include("engines.wine.verbs.vcrun2005"); include("engines.wine.verbs.vcrun2008"); diff --git a/Applications/Games/Totally Accurate Battlegrounds/Steam/script.js b/Applications/Games/Totally Accurate Battlegrounds/Steam/script.js index ad430095de..2ebf4e063a 100644 --- a/Applications/Games/Totally Accurate Battlegrounds/Steam/script.js +++ b/Applications/Games/Totally Accurate Battlegrounds/Steam/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); new SteamScript() .name("Totally Accurate Battlegrounds") diff --git a/Applications/Games/Trackmania Turbo/Steam (Demo)/script.js b/Applications/Games/Trackmania Turbo/Steam (Demo)/script.js index 0041d5b878..4a3255a455 100644 --- a/Applications/Games/Trackmania Turbo/Steam (Demo)/script.js +++ b/Applications/Games/Trackmania Turbo/Steam (Demo)/script.js @@ -1,4 +1,6 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); +const {LATEST_STAGING_VERSION} = include("engines.wine.engine.versions"); + include("engines.wine.verbs.uplay"); new SteamScript() diff --git a/Applications/Games/Trackmania Turbo/Steam/script.js b/Applications/Games/Trackmania Turbo/Steam/script.js index 3022538206..4603d5b03d 100644 --- a/Applications/Games/Trackmania Turbo/Steam/script.js +++ b/Applications/Games/Trackmania Turbo/Steam/script.js @@ -1,4 +1,6 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); +const {LATEST_STAGING_VERSION} = include("engines.wine.engine.versions"); + include("engines.wine.verbs.uplay"); new SteamScript() diff --git a/Applications/Games/Tropico 3/Steam/script.js b/Applications/Games/Tropico 3/Steam/script.js index b0a22031d5..c3e5c55fde 100644 --- a/Applications/Games/Tropico 3/Steam/script.js +++ b/Applications/Games/Tropico 3/Steam/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); new SteamScript() .name("Tropico 3") diff --git a/Applications/Games/Tropico 4/Steam (Demo)/script.js b/Applications/Games/Tropico 4/Steam (Demo)/script.js index 545f1456d8..32f57eec4e 100644 --- a/Applications/Games/Tropico 4/Steam (Demo)/script.js +++ b/Applications/Games/Tropico 4/Steam (Demo)/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); new SteamScript() .name("Tropico 4 (Demo)") diff --git a/Applications/Games/Tropico 4/Steam/script.js b/Applications/Games/Tropico 4/Steam/script.js index 5fd9899dd5..f2a3227c16 100644 --- a/Applications/Games/Tropico 4/Steam/script.js +++ b/Applications/Games/Tropico 4/Steam/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); new SteamScript() .name("Tropico 4") diff --git a/Applications/Games/Unholy Heights/Steam/script.js b/Applications/Games/Unholy Heights/Steam/script.js index 283185565b..fbb639b6f0 100644 --- a/Applications/Games/Unholy Heights/Steam/script.js +++ b/Applications/Games/Unholy Heights/Steam/script.js @@ -1,4 +1,6 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); +const {LATEST_STAGING_VERSION} = include("engines.wine.engine.versions"); + include("engines.wine.verbs.dotnet40"); new SteamScript() diff --git a/Applications/Games/Uplay/Local/script.js b/Applications/Games/Uplay/Local/script.js index b855571b62..9cd0e279ad 100644 --- a/Applications/Games/Uplay/Local/script.js +++ b/Applications/Games/Uplay/Local/script.js @@ -1,4 +1,5 @@ -include("engines.wine.quick_script.local_installer_script"); +const LocalInstallerScript = include("engines.wine.quick_script.local_installer_script"); +const {LATEST_STAGING_VERSION} = include("engines.wine.engine.versions"); new LocalInstallerScript() .name("Uplay") diff --git a/Applications/Games/Uplay/Online/script.js b/Applications/Games/Uplay/Online/script.js index e9f9bc3d73..50175073e2 100644 --- a/Applications/Games/Uplay/Online/script.js +++ b/Applications/Games/Uplay/Online/script.js @@ -1,4 +1,6 @@ -include("engines.wine.quick_script.online_installer_script"); +const OnlineInstallerScript = include("engines.wine.quick_script.online_installer_script"); +const {LATEST_STAGING_VERSION} = include("engines.wine.engine.versions"); + include("engines.wine.plugins.windows_version"); include("engines.wine.verbs.corefonts"); diff --git a/Applications/Games/Warcraft III Expansion Set/Online/script.js b/Applications/Games/Warcraft III Expansion Set/Online/script.js index 5fec17b9dd..3175214141 100644 --- a/Applications/Games/Warcraft III Expansion Set/Online/script.js +++ b/Applications/Games/Warcraft III Expansion Set/Online/script.js @@ -1,4 +1,6 @@ -include("engines.wine.quick_script.online_installer_script"); +const OnlineInstallerScript = include("engines.wine.quick_script.online_installer_script"); +const {LATEST_STAGING_VERSION} = include("engines.wine.engine.versions"); + include("engines.wine.plugins.windows_version"); include("engines.wine.verbs.vcrun2015"); include("engines.wine.verbs.corefonts"); diff --git a/Applications/Games/Warface/Steam/script.js b/Applications/Games/Warface/Steam/script.js index a0c990c114..ea3b0bacec 100644 --- a/Applications/Games/Warface/Steam/script.js +++ b/Applications/Games/Warface/Steam/script.js @@ -1,4 +1,6 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); +const {LATEST_STAGING_VERSION} = include("engines.wine.engine.versions"); + include("engines.wine.plugins.csmt"); new SteamScript() diff --git a/Applications/Games/Warlock - Master of the Arcane/Steam/script.js b/Applications/Games/Warlock - Master of the Arcane/Steam/script.js index d73ebec89d..ff014f703f 100644 --- a/Applications/Games/Warlock - Master of the Arcane/Steam/script.js +++ b/Applications/Games/Warlock - Master of the Arcane/Steam/script.js @@ -1,4 +1,6 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); +const {LATEST_STAGING_VERSION} = include("engines.wine.engine.versions"); + include("engines.wine.verbs.corefonts"); include("engines.wine.verbs.d3dx9"); include("engines.wine.verbs.tahoma"); diff --git a/Applications/Games/Wildlife Park 2/Local/script.js b/Applications/Games/Wildlife Park 2/Local/script.js index ff1c67c9e7..07111192b4 100644 --- a/Applications/Games/Wildlife Park 2/Local/script.js +++ b/Applications/Games/Wildlife Park 2/Local/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.local_installer_script"); +const LocalInstallerScript = include("engines.wine.quick_script.local_installer_script"); include("engines.wine.plugins.virtual_desktop"); include("engines.wine.verbs.quartz"); diff --git a/Applications/Games/Wildlife Park 2/Steam/script.js b/Applications/Games/Wildlife Park 2/Steam/script.js index 6f1ee9b838..ed7196b4a0 100644 --- a/Applications/Games/Wildlife Park 2/Steam/script.js +++ b/Applications/Games/Wildlife Park 2/Steam/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); include("engines.wine.plugins.virtual_desktop"); include("engines.wine.verbs.quartz"); diff --git a/Applications/Games/Worms Armageddon/Steam/script.js b/Applications/Games/Worms Armageddon/Steam/script.js index 2a599dabca..6d3af56db5 100644 --- a/Applications/Games/Worms Armageddon/Steam/script.js +++ b/Applications/Games/Worms Armageddon/Steam/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); new SteamScript() .name("Worms Armageddon") diff --git a/Applications/Games/Worms Reloaded/Steam/script.js b/Applications/Games/Worms Reloaded/Steam/script.js index 281935d2f1..d43aec876e 100644 --- a/Applications/Games/Worms Reloaded/Steam/script.js +++ b/Applications/Games/Worms Reloaded/Steam/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); new SteamScript() .name("Worms™ Reloaded") diff --git a/Applications/Games/XIII/GOG/script.js b/Applications/Games/XIII/GOG/script.js index ce45c147b9..a69fb5e926 100644 --- a/Applications/Games/XIII/GOG/script.js +++ b/Applications/Games/XIII/GOG/script.js @@ -1,4 +1,5 @@ -include("engines.wine.quick_script.gog_script"); +const GogScript = include("engines.wine.quick_script.gog_script"); +const {LATEST_STABLE_VERSION} = include("engines.wine.engine.versions"); new GogScript() .name("XIII") diff --git a/Applications/Games/Xenon 2/Online/script.js b/Applications/Games/Xenon 2/Online/script.js index dc29278033..13f422c47f 100644 --- a/Applications/Games/Xenon 2/Online/script.js +++ b/Applications/Games/Xenon 2/Online/script.js @@ -1,4 +1,5 @@ -include("engines.wine.quick_script.zip_script"); +const ZipScript = include("engines.wine.quick_script.zip_script"); +const {LATEST_DOS_SUPPORT_VERSION} = include("engines.wine.engine.versions"); new ZipScript() .name("Xenon 2") diff --git a/Applications/Games/osu!/Online/script.js b/Applications/Games/osu!/Online/script.js index 1187886879..f239e5f96b 100644 --- a/Applications/Games/osu!/Online/script.js +++ b/Applications/Games/osu!/Online/script.js @@ -1,4 +1,6 @@ -include("engines.wine.quick_script.online_installer_script"); +const OnlineInstallerScript = include("engines.wine.quick_script.online_installer_script"); +const {LATEST_DEVELOPMENT_VERSION} = include("engines.wine.engine.versions"); + include("engines.wine.verbs.dotnet45"); include("engines.wine.verbs.corefonts"); diff --git a/Applications/Graphics/Microsoft Paint/Online/script.js b/Applications/Graphics/Microsoft Paint/Online/script.js index dfaf87f5be..64f7effd91 100644 --- a/Applications/Graphics/Microsoft Paint/Online/script.js +++ b/Applications/Graphics/Microsoft Paint/Online/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.zip_script"); +const ZipScript = include("engines.wine.quick_script.zip_script"); new ZipScript() .name("Microsoft Paint") diff --git a/Applications/Graphics/Photofiltre/Online/script.js b/Applications/Graphics/Photofiltre/Online/script.js index fd1ef78e65..198c7c6486 100644 --- a/Applications/Graphics/Photofiltre/Online/script.js +++ b/Applications/Graphics/Photofiltre/Online/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.online_installer_script"); +const OnlineInstallerScript = include("engines.wine.quick_script.online_installer_script"); new OnlineInstallerScript() .name("Photofiltre") diff --git a/Applications/Internet/Internet Explorer 6.0/Online/script.js b/Applications/Internet/Internet Explorer 6.0/Online/script.js index e7e11d2721..cda3b54039 100644 --- a/Applications/Internet/Internet Explorer 6.0/Online/script.js +++ b/Applications/Internet/Internet Explorer 6.0/Online/script.js @@ -1,13 +1,16 @@ -include("utils.functions.apps.plain_installer"); -include("utils.functions.net.resource"); -include("engines.wine.engine.object"); +const PlainInstaller = include("utils.functions.apps.plain_installer"); +const Resource = include("utils.functions.net.resource"); +const {CabExtract} = include("utils.functions.filesystem.extract"); +const Wine = include("engines.wine.engine.object"); +const {LATEST_STABLE_VERSION} = include("engines.wine.engine.versions"); +const {remove} = include("utils.functions.filesystem.files"); +const WineShortcut = include("engines.wine.shortcuts.wine"); +const AppResource = include("utils.functions.apps.resources"); + include("engines.wine.plugins.override_dll"); include("engines.wine.plugins.regedit"); include("engines.wine.plugins.regsvr32"); include("engines.wine.plugins.windows_version"); -include("utils.functions.filesystem.files"); -include("engines.wine.shortcuts.wine"); -include("utils.functions.apps.resources"); include("engines.wine.verbs.msls31"); new PlainInstaller().withScript(() => { diff --git a/Applications/Internet/Internet Explorer 7.0/Online/script.js b/Applications/Internet/Internet Explorer 7.0/Online/script.js index 9ce8b0fc64..d3020199a2 100644 --- a/Applications/Internet/Internet Explorer 7.0/Online/script.js +++ b/Applications/Internet/Internet Explorer 7.0/Online/script.js @@ -1,13 +1,14 @@ -include("utils.functions.apps.plain_installer"); -include("utils.functions.net.resource"); -include("engines.wine.engine.object"); +const PlainInstaller = include("utils.functions.apps.plain_installer"); +const Resource = include("utils.functions.net.resource"); +const Wine = include("engines.wine.engine.object"); +const {LATEST_STABLE_VERSION} = include("engines.wine.engine.versions"); +const {remove} = include("utils.functions.filesystem.files"); +const WineShortcut = include("engines.wine.shortcuts.wine"); + include("engines.wine.plugins.override_dll"); include("engines.wine.plugins.regsvr32"); -include("utils.functions.filesystem.files"); -include("engines.wine.shortcuts.wine"); -include("utils.functions.apps.resources"); -include("engines.wine.verbs.sandbox"); include("engines.wine.plugins.windows_version"); +include("engines.wine.verbs.sandbox"); new PlainInstaller().withScript(() => { var appsManager = Bean("repositoryManager"); diff --git a/Applications/Internet/TeamSpeak 3/v3.0.19.4/script.js b/Applications/Internet/TeamSpeak 3/v3.0.19.4/script.js index 0d46c6c9be..303a434ed1 100644 --- a/Applications/Internet/TeamSpeak 3/v3.0.19.4/script.js +++ b/Applications/Internet/TeamSpeak 3/v3.0.19.4/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.online_installer_script"); +const OnlineInstallerScript = include("engines.wine.quick_script.online_installer_script"); new OnlineInstallerScript() .name("TeamSpeak 3") diff --git a/Applications/Internet/mIRC/v7.46/script.js b/Applications/Internet/mIRC/v7.46/script.js index be93db35a5..d31e0c795c 100644 --- a/Applications/Internet/mIRC/v7.46/script.js +++ b/Applications/Internet/mIRC/v7.46/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.online_installer_script"); +const OnlineInstallerScript = include("engines.wine.quick_script.online_installer_script"); new OnlineInstallerScript() .name("mIRC") diff --git a/Applications/Multimedia/Mp3tag/Online/script.js b/Applications/Multimedia/Mp3tag/Online/script.js index 61703081d6..9de69e4e02 100644 --- a/Applications/Multimedia/Mp3tag/Online/script.js +++ b/Applications/Multimedia/Mp3tag/Online/script.js @@ -1,4 +1,4 @@ -include("engines.wine.quick_script.online_installer_script"); +const OnlineInstallerScript = include("engines.wine.quick_script.online_installer_script"); new OnlineInstallerScript() .name("Mp3tag") diff --git a/Applications/Office/Adobe Acrobat Reader DC/Online/script.js b/Applications/Office/Adobe Acrobat Reader DC/Online/script.js index 52b1e9de96..8708c175a2 100644 --- a/Applications/Office/Adobe Acrobat Reader DC/Online/script.js +++ b/Applications/Office/Adobe Acrobat Reader DC/Online/script.js @@ -1,4 +1,6 @@ -include("engines.wine.quick_script.online_installer_script"); +const OnlineInstallerScript = include("engines.wine.quick_script.online_installer_script"); +const {LATEST_STAGING_VERSION} = include("engines.wine.engine.versions"); + include("engines.wine.verbs.mspatcha"); include("engines.wine.plugins.windows_version"); diff --git a/Applications/Office/ElsterFormular/Online/script.js b/Applications/Office/ElsterFormular/Online/script.js index 682815e6c3..800bad768e 100644 --- a/Applications/Office/ElsterFormular/Online/script.js +++ b/Applications/Office/ElsterFormular/Online/script.js @@ -1,4 +1,5 @@ -include("engines.wine.quick_script.local_installer_script"); +const LocalInstallerScript = include("engines.wine.quick_script.local_installer_script"); + include("engines.wine.plugins.native_application"); include("engines.wine.verbs.vcrun2017"); diff --git a/Applications/Office/Microsoft Office 2010/Local/script.js b/Applications/Office/Microsoft Office 2010/Local/script.js index 21cc5bc930..800fadaab5 100644 --- a/Applications/Office/Microsoft Office 2010/Local/script.js +++ b/Applications/Office/Microsoft Office 2010/Local/script.js @@ -1,4 +1,6 @@ -include("engines.wine.quick_script.local_installer_script"); +const LocalInstallerScript = include("engines.wine.quick_script.local_installer_script"); +const WineShortcut = include("engines.wine.shortcuts.wine"); + include("engines.wine.plugins.override_dll"); new LocalInstallerScript() diff --git a/Applications/Office/Microsoft Office 2013/Local/script.js b/Applications/Office/Microsoft Office 2013/Local/script.js index 707b390c69..a9c9bee810 100644 --- a/Applications/Office/Microsoft Office 2013/Local/script.js +++ b/Applications/Office/Microsoft Office 2013/Local/script.js @@ -1,4 +1,7 @@ -include("engines.wine.quick_script.local_installer_script"); +const LocalInstallerScript = include("engines.wine.quick_script.local_installer_script"); +const WineShortcut = include("engines.wine.shortcuts.wine"); +const {LATEST_STAGING_VERSION} = include("engines.wine.engine.versions"); + include("engines.wine.plugins.override_dll"); new LocalInstallerScript() diff --git a/Engines/Wine/Engine/Constants/script.js b/Engines/Wine/Engine/Constants/script.js new file mode 100644 index 0000000000..4cfb803d65 --- /dev/null +++ b/Engines/Wine/Engine/Constants/script.js @@ -0,0 +1,2 @@ +/* exported WINE_PREFIX_DIR */ +module.WINE_PREFIX_DIR = "wineprefix"; diff --git a/Engines/Wine/Engine/Constants/script.json b/Engines/Wine/Engine/Constants/script.json new file mode 100644 index 0000000000..d1b903ae86 --- /dev/null +++ b/Engines/Wine/Engine/Constants/script.json @@ -0,0 +1,11 @@ +{ + "scriptName" : "Wine constants", + "id" : "engines.wine.engine.constants", + "compatibleOperatingSystems" : [ + "MACOSX", + "LINUX" + ], + "testingOperatingSystems" : [], + "free" : true, + "requiresPatch" : false +} diff --git a/Engines/Wine/Engine/Implementation/script.js b/Engines/Wine/Engine/Implementation/script.js index 20537022cd..ee1b601647 100644 --- a/Engines/Wine/Engine/Implementation/script.js +++ b/Engines/Wine/Engine/Implementation/script.js @@ -1,16 +1,14 @@ -include("utils.functions.filesystem.files"); -include("utils.functions.filesystem.extract"); -include("utils.functions.net.download"); -include("utils.functions.net.resource"); - -/* exported WINE_PREFIX_DIR */ -var WINE_PREFIX_DIR = "wineprefix"; +const {ls, mkdir, fileExists, cat, lns, remove, touch, createTempFile} = include("utils.functions.filesystem.files"); +const {Extractor} = include("utils.functions.filesystem.extract"); +const Downloader = include("utils.functions.net.download"); +const Resource = include("utils.functions.net.resource"); +const {WINE_PREFIX_DIR} = include("engines.wine.engine.constants"); /** * Wine engine */ // eslint-disable-next-line no-unused-vars -class WineEngine { +module.default = class WineEngine { constructor() { this._configFactory = Bean("compatibleConfigFileFormatFactory"); this._containerRegex = /[^a-z0-9_\- ]/gi; diff --git a/Engines/Wine/Engine/Object/script.js b/Engines/Wine/Engine/Object/script.js index a4efc5940c..f74cd03e86 100644 --- a/Engines/Wine/Engine/Object/script.js +++ b/Engines/Wine/Engine/Object/script.js @@ -1,17 +1,5 @@ -include("engines.wine.engine.implementation"); -include("utils.functions.filesystem.files"); -include("utils.functions.filesystem.extract"); -include("utils.functions.net.download"); -include("utils.functions.net.resource"); - -/* exported LATEST_STABLE_VERSION */ -const LATEST_STABLE_VERSION = "4.0.1"; -/* exported LATEST_DEVELOPMENT_VERSION */ -var LATEST_DEVELOPMENT_VERSION = "4.12.1"; -/* exported LATEST_STAGING_VERSION */ -var LATEST_STAGING_VERSION = "4.12.1"; -/* exported LATEST_DOS_SUPPORT_VERSION */ -const LATEST_DOS_SUPPORT_VERSION = "4.0"; +const WineEngine = include("engines.wine.engine.implementation"); +const {fileExists} = include("utils.functions.filesystem.files"); const FilenameUtils = Java.type("org.apache.commons.io.FilenameUtils"); @@ -19,7 +7,7 @@ const FilenameUtils = Java.type("org.apache.commons.io.FilenameUtils"); * Wine main prototype */ // eslint-disable-next-line no-unused-vars -class Wine { +module.default = class Wine { constructor() { this._implementation = new WineEngine(); diff --git a/Engines/Wine/Engine/Versions/script.js b/Engines/Wine/Engine/Versions/script.js new file mode 100644 index 0000000000..2c478fde43 --- /dev/null +++ b/Engines/Wine/Engine/Versions/script.js @@ -0,0 +1,8 @@ +/* exported LATEST_STABLE_VERSION */ +module.LATEST_STABLE_VERSION = "4.0.1"; +/* exported LATEST_DEVELOPMENT_VERSION */ +module.LATEST_DEVELOPMENT_VERSION = "4.12.1"; +/* exported LATEST_STAGING_VERSION */ +module.LATEST_STAGING_VERSION = "4.12.1"; +/* exported LATEST_DOS_SUPPORT_VERSION */ +module.LATEST_DOS_SUPPORT_VERSION = "4.0"; diff --git a/Engines/Wine/Engine/Versions/script.json b/Engines/Wine/Engine/Versions/script.json new file mode 100644 index 0000000000..0fda1ebd3d --- /dev/null +++ b/Engines/Wine/Engine/Versions/script.json @@ -0,0 +1,11 @@ +{ + "scriptName" : "Wine versions", + "id" : "engines.wine.engine.versions", + "compatibleOperatingSystems" : [ + "MACOSX", + "LINUX" + ], + "testingOperatingSystems" : [], + "free" : true, + "requiresPatch" : false +} diff --git a/Engines/Wine/Plugins/DOS support/script.js b/Engines/Wine/Plugins/DOS support/script.js index 90a9a2423b..f37039149d 100644 --- a/Engines/Wine/Plugins/DOS support/script.js +++ b/Engines/Wine/Plugins/DOS support/script.js @@ -1,5 +1,5 @@ -include("engines.wine.engine.object"); -include("utils.functions.filesystem.files"); +const Wine = include("engines.wine.engine.object"); +const {writeToFile, fileExists, cat} = include("utils.functions.filesystem.files"); /** * This extensions allows script to add extra settings to dos_support wine builds diff --git a/Engines/Wine/Plugins/DirectDraw renderer/script.js b/Engines/Wine/Plugins/DirectDraw renderer/script.js index 8072a0afa1..62b8e356f3 100644 --- a/Engines/Wine/Plugins/DirectDraw renderer/script.js +++ b/Engines/Wine/Plugins/DirectDraw renderer/script.js @@ -1,4 +1,6 @@ -include("engines.wine.engine.object"); +const Wine = include("engines.wine.engine.object"); + +include("engines.wine.plugins.regedit"); /** * force the DirectDrawRenderer diff --git a/Engines/Wine/Plugins/Font smoothing/script.js b/Engines/Wine/Plugins/Font smoothing/script.js index 86cbef5d1f..35a8fb9ce5 100644 --- a/Engines/Wine/Plugins/Font smoothing/script.js +++ b/Engines/Wine/Plugins/Font smoothing/script.js @@ -1,4 +1,6 @@ -include("engines.wine.engine.object"); +const Wine = include("engines.wine.engine.object"); + +include("engines.wine.plugins.regedit"); /** * Force the Font smoothing diff --git a/Engines/Wine/Plugins/GLSL/script.js b/Engines/Wine/Plugins/GLSL/script.js index 653eb9f404..7bcf5e40c6 100644 --- a/Engines/Wine/Plugins/GLSL/script.js +++ b/Engines/Wine/Plugins/GLSL/script.js @@ -1,4 +1,5 @@ -include("engines.wine.engine.object"); +const Wine = include("engines.wine.engine.object"); + include("engines.wine.plugins.regedit"); /** diff --git a/Engines/Wine/Plugins/OpenGL version/script.js b/Engines/Wine/Plugins/OpenGL version/script.js index d97d8ed53e..d67f248fcd 100644 --- a/Engines/Wine/Plugins/OpenGL version/script.js +++ b/Engines/Wine/Plugins/OpenGL version/script.js @@ -1,4 +1,5 @@ -include("engines.wine.engine.object"); +const Wine = include("engines.wine.engine.object"); + include("engines.wine.plugins.regedit"); /** diff --git a/Engines/Wine/Plugins/UseTakeFocus/script.js b/Engines/Wine/Plugins/UseTakeFocus/script.js index 1df2e52f52..1fb9940b0c 100644 --- a/Engines/Wine/Plugins/UseTakeFocus/script.js +++ b/Engines/Wine/Plugins/UseTakeFocus/script.js @@ -1,4 +1,5 @@ -include("engines.wine.engine.object"); +const Wine = include("engines.wine.engine.object"); + include("engines.wine.plugins.regedit"); /** diff --git a/Engines/Wine/Plugins/Windows version/script.js b/Engines/Wine/Plugins/Windows version/script.js index e45aa20f39..413734c1e9 100644 --- a/Engines/Wine/Plugins/Windows version/script.js +++ b/Engines/Wine/Plugins/Windows version/script.js @@ -1,4 +1,5 @@ -include("engines.wine.engine.object"); +const Wine = include("engines.wine.engine.object"); + include("engines.wine.plugins.regedit"); /** @@ -8,7 +9,6 @@ include("engines.wine.plugins.regedit"); * @returns {string|Wine} get: Windows version, set: Wine object */ Wine.prototype.windowsVersion = function (version, servicePack) { - var that = this; // get if (arguments.length == 0) { return this.regedit().fetchValue(["HKEY_CURRENT_USER", "Software", "Wine", "Version"]); diff --git a/Engines/Wine/Plugins/csmt/script.js b/Engines/Wine/Plugins/csmt/script.js index 47f9b76adb..56b03b1756 100644 --- a/Engines/Wine/Plugins/csmt/script.js +++ b/Engines/Wine/Plugins/csmt/script.js @@ -1,4 +1,5 @@ -include("engines.wine.engine.object"); +const Wine = include("engines.wine.engine.object"); + include("engines.wine.plugins.regedit"); /** diff --git a/Engines/Wine/Plugins/hdpi/script.js b/Engines/Wine/Plugins/hdpi/script.js index 3f25f6c76b..e5567ed163 100644 --- a/Engines/Wine/Plugins/hdpi/script.js +++ b/Engines/Wine/Plugins/hdpi/script.js @@ -1,4 +1,5 @@ -include("engines.wine.engine.object"); +const Wine = include("engines.wine.engine.object"); + include("engines.wine.plugins.regedit"); /** diff --git a/Engines/Wine/Plugins/managed/script.js b/Engines/Wine/Plugins/managed/script.js index 4532fc278d..06e529b5fa 100644 --- a/Engines/Wine/Plugins/managed/script.js +++ b/Engines/Wine/Plugins/managed/script.js @@ -1,4 +1,5 @@ -include("engines.wine.engine.object"); +const Wine = include("engines.wine.engine.object"); + include("engines.wine.plugins.regedit"); /** diff --git a/Engines/Wine/Plugins/native application/script.js b/Engines/Wine/Plugins/native application/script.js index f81c353d19..57de656416 100644 --- a/Engines/Wine/Plugins/native application/script.js +++ b/Engines/Wine/Plugins/native application/script.js @@ -1,4 +1,5 @@ -include("engines.wine.engine.object"); +const Wine = include("engines.wine.engine.object"); + include("engines.wine.plugins.regedit"); /** diff --git a/Engines/Wine/Plugins/nocrashdialog/script.js b/Engines/Wine/Plugins/nocrashdialog/script.js index 04cb1ee147..1b758da43d 100644 --- a/Engines/Wine/Plugins/nocrashdialog/script.js +++ b/Engines/Wine/Plugins/nocrashdialog/script.js @@ -1,4 +1,6 @@ -include("engines.wine.engine.object"); +const Wine = include("engines.wine.engine.object"); + +include("engines.wine.plugins.regedit"); /** * disables the crashdialog @@ -9,7 +11,7 @@ Wine.prototype.nocrashdialog = function () { "REGEDIT4\n" + "\n" + "[HKEY_CURRENT_USER\\Software\\Wine\\WineDbg]\n" + - "\"ShowCrashDialog\"=\""00000000"\"" + "\"ShowCrashDialog\"=\"00000000\"" this.regedit().patch(regeditFileContent); return this; }; diff --git a/Engines/Wine/Plugins/override DLL/script.js b/Engines/Wine/Plugins/override DLL/script.js index ffca1e9428..4ab5d15f82 100644 --- a/Engines/Wine/Plugins/override DLL/script.js +++ b/Engines/Wine/Plugins/override DLL/script.js @@ -1,4 +1,5 @@ -include("engines.wine.engine.object"); +const Wine = include("engines.wine.engine.object"); + include("engines.wine.plugins.regedit"); var OverrideDLL = function () { diff --git a/Engines/Wine/Plugins/regedit/script.js b/Engines/Wine/Plugins/regedit/script.js index 5310bacc52..142aa0a5a5 100644 --- a/Engines/Wine/Plugins/regedit/script.js +++ b/Engines/Wine/Plugins/regedit/script.js @@ -1,4 +1,5 @@ -include("engines.wine.engine.object"); +const Wine = include("engines.wine.engine.object"); +const {createTempFile, writeToFile} = include("utils.functions.filesystem.files"); /** * Regedit support diff --git a/Engines/Wine/Plugins/register font/script.js b/Engines/Wine/Plugins/register font/script.js index aa5259d7f3..008df099ae 100644 --- a/Engines/Wine/Plugins/register font/script.js +++ b/Engines/Wine/Plugins/register font/script.js @@ -1,4 +1,5 @@ -include("engines.wine.engine.object"); +const Wine = include("engines.wine.engine.object"); + include("engines.wine.plugins.regedit"); var RegisterFont = function () { diff --git a/Engines/Wine/Plugins/regsvr32/script.js b/Engines/Wine/Plugins/regsvr32/script.js index 75b03e2c31..5833f781fb 100644 --- a/Engines/Wine/Plugins/regsvr32/script.js +++ b/Engines/Wine/Plugins/regsvr32/script.js @@ -1,4 +1,4 @@ -include("engines.wine.engine.object"); +const Wine = include("engines.wine.engine.object"); /** * runs "regsvr32" diff --git a/Engines/Wine/Plugins/sound driver/script.js b/Engines/Wine/Plugins/sound driver/script.js index fd844857df..ecbd82b5e8 100644 --- a/Engines/Wine/Plugins/sound driver/script.js +++ b/Engines/Wine/Plugins/sound driver/script.js @@ -1,4 +1,5 @@ -include("engines.wine.engine.object"); +const Wine = include("engines.wine.engine.object"); + include("engines.wine.plugins.regedit"); /** diff --git a/Engines/Wine/Plugins/virtual desktop/script.js b/Engines/Wine/Plugins/virtual desktop/script.js index 51a1ff0714..126bca3d9a 100644 --- a/Engines/Wine/Plugins/virtual desktop/script.js +++ b/Engines/Wine/Plugins/virtual desktop/script.js @@ -1,4 +1,6 @@ -include("engines.wine.engine.object"); +const Wine = include("engines.wine.engine.object"); + +include("engines.wine.plugins.regedit"); /** * sets Virtual Desktop with window resolution diff --git a/Engines/Wine/QuickScript/Custom Installer Script/script.js b/Engines/Wine/QuickScript/Custom Installer Script/script.js index 49b2d38081..2757f02c51 100644 --- a/Engines/Wine/QuickScript/Custom Installer Script/script.js +++ b/Engines/Wine/QuickScript/Custom Installer Script/script.js @@ -1,6 +1,6 @@ -include("engines.wine.quick_script.installer_script"); +const InstallerScript = include("engines.wine.quick_script.installer_script"); -class CustomInstallerScript extends InstallerScript { +module.default = class CustomInstallerScript extends InstallerScript { constructor() { super(); } diff --git a/Engines/Wine/QuickScript/GoG Script/script.js b/Engines/Wine/QuickScript/GoG Script/script.js index 533661b21b..02ddf652a0 100644 --- a/Engines/Wine/QuickScript/GoG Script/script.js +++ b/Engines/Wine/QuickScript/GoG Script/script.js @@ -1,9 +1,11 @@ -include("engines.wine.engine.object"); -include("engines.wine.quick_script.quick_script"); +const Wine = include("engines.wine.engine.object"); +const QuickScript = include("engines.wine.quick_script.quick_script"); +const Downloader = include("utils.functions.net.download"); +const {createTempDir} = include("utils.functions.filesystem.files"); + include("engines.wine.verbs.gdiplus"); -include("utils.functions.net.download"); -class GogScript extends QuickScript { +module.default = class GogScript extends QuickScript { constructor() { super(); } diff --git a/Engines/Wine/QuickScript/Installer Script/script.js b/Engines/Wine/QuickScript/Installer Script/script.js index 3a156c9254..0a566e8377 100644 --- a/Engines/Wine/QuickScript/Installer Script/script.js +++ b/Engines/Wine/QuickScript/Installer Script/script.js @@ -1,12 +1,13 @@ -include("engines.wine.quick_script.quick_script"); -include("engines.wine.engine.object"); -include("utils.functions.filesystem.extract"); -include("utils.functions.filesystem.files"); +const QuickScript = include("engines.wine.quick_script.quick_script"); +const Wine = include("engines.wine.engine.object"); +const {LATEST_STABLE_VERSION} = include("engines.wine.engine.versions"); +const {fileName} = include("utils.functions.filesystem.files"); + include("engines.wine.verbs.luna"); const operatingSystemFetcher = Bean("operatingSystemFetcher"); -class InstallerScript extends QuickScript { +module.default = class InstallerScript extends QuickScript { constructor() { super(); } diff --git a/Engines/Wine/QuickScript/Local Installer Script/script.js b/Engines/Wine/QuickScript/Local Installer Script/script.js index 321054147f..6a8fc0e04a 100644 --- a/Engines/Wine/QuickScript/Local Installer Script/script.js +++ b/Engines/Wine/QuickScript/Local Installer Script/script.js @@ -1,6 +1,6 @@ -include("engines.wine.quick_script.installer_script"); +const InstallerScript = include("engines.wine.quick_script.installer_script"); -class LocalInstallerScript extends InstallerScript { +module.default = class LocalInstallerScript extends InstallerScript { constructor() { super(); diff --git a/Engines/Wine/QuickScript/Online Installer Script/script.js b/Engines/Wine/QuickScript/Online Installer Script/script.js index cb4a4ebd7c..0c76fae0d4 100644 --- a/Engines/Wine/QuickScript/Online Installer Script/script.js +++ b/Engines/Wine/QuickScript/Online Installer Script/script.js @@ -1,7 +1,8 @@ -include("engines.wine.quick_script.installer_script"); -include("utils.functions.net.download"); +const InstallerScript = include("engines.wine.quick_script.installer_script"); +const Downloader = include("utils.functions.net.download"); +const {createTempFile} = include("utils.functions.filesystem.files"); -class OnlineInstallerScript extends InstallerScript { +module.default = class OnlineInstallerScript extends InstallerScript { constructor() { super(); diff --git a/Engines/Wine/QuickScript/Origin Script/script.js b/Engines/Wine/QuickScript/Origin Script/script.js index 58d4d265da..f393b5a59b 100644 --- a/Engines/Wine/QuickScript/Origin Script/script.js +++ b/Engines/Wine/QuickScript/Origin Script/script.js @@ -1,10 +1,11 @@ -include("engines.wine.quick_script.quick_script"); -include("utils.functions.net.download"); -include("engines.wine.engine.object"); -include("utils.functions.filesystem.files"); +const QuickScript = include("engines.wine.quick_script.quick_script"); +const Downloader = include("utils.functions.net.download"); +const Wine = include("engines.wine.engine.object"); +const {createTempFile} = include("utils.functions.filesystem.files"); + include("engines.wine.verbs.luna"); -class OriginScript extends QuickScript { +module.default = class OriginScript extends QuickScript { constructor() { super(); diff --git a/Engines/Wine/QuickScript/Quick Script/script.js b/Engines/Wine/QuickScript/Quick Script/script.js index efc4ebf0e0..ae025ad3dd 100644 --- a/Engines/Wine/QuickScript/Quick Script/script.js +++ b/Engines/Wine/QuickScript/Quick Script/script.js @@ -1,6 +1,7 @@ -include("engines.wine.shortcuts.wine"); +const {LATEST_STABLE_VERSION} = include("engines.wine.engine.versions"); +const WineShortcut = include("engines.wine.shortcuts.wine"); -class QuickScript { +module.default = class QuickScript { constructor() { this._wineVersion = LATEST_STABLE_VERSION; this._wineArchitecture = "x86"; diff --git a/Engines/Wine/QuickScript/Steam Script/script.js b/Engines/Wine/QuickScript/Steam Script/script.js index 9ba8df5657..606ce6f73f 100644 --- a/Engines/Wine/QuickScript/Steam Script/script.js +++ b/Engines/Wine/QuickScript/Steam Script/script.js @@ -1,14 +1,14 @@ -include("engines.wine.quick_script.quick_script"); -include("utils.functions.net.download"); -include("engines.wine.engine.object"); -include("engines.wine.plugins.override_dll"); -include("utils.functions.filesystem.extract"); -include("utils.functions.filesystem.files"); +const QuickScript = include("engines.wine.quick_script.quick_script"); +const Downloader = include("utils.functions.net.download"); +const Wine = include("engines.wine.engine.object"); +const {cat, fileExists, writeToFile, createTempFile} = include("utils.functions.filesystem.files"); + include("engines.wine.verbs.luna"); include("engines.wine.verbs.corefonts"); +include("engines.wine.plugins.override_dll"); include("engines.wine.plugins.windows_version"); -class SteamScript extends QuickScript { +module.default = class SteamScript extends QuickScript { constructor() { super(); diff --git a/Engines/Wine/QuickScript/Uplay Script/script.js b/Engines/Wine/QuickScript/Uplay Script/script.js index b27e94ffba..abbe38c387 100644 --- a/Engines/Wine/QuickScript/Uplay Script/script.js +++ b/Engines/Wine/QuickScript/Uplay Script/script.js @@ -1,13 +1,13 @@ -include("engines.wine.quick_script.quick_script"); -include("utils.functions.net.download"); -include("engines.wine.engine.object"); -include("utils.functions.filesystem.extract"); -include("utils.functions.filesystem.files"); +const QuickScript = include("engines.wine.quick_script.quick_script"); +const Downloader = include("utils.functions.net.download"); +const Wine = include("engines.wine.engine.object"); +const {fileExists, createTempFile} = include("utils.functions.filesystem.files"); + include("engines.wine.verbs.luna"); include("engines.wine.verbs.corefonts"); include("engines.wine.plugins.windows_version"); -class UplayScript extends QuickScript { +module.default = class UplayScript extends QuickScript { constructor() { super(); diff --git a/Engines/Wine/QuickScript/Zip Script/script.js b/Engines/Wine/QuickScript/Zip Script/script.js index e6a08a30d3..65e3d316e3 100644 --- a/Engines/Wine/QuickScript/Zip Script/script.js +++ b/Engines/Wine/QuickScript/Zip Script/script.js @@ -1,10 +1,11 @@ -include("engines.wine.quick_script.quick_script"); -include("utils.functions.net.download"); -include("engines.wine.engine.object"); -include("utils.functions.filesystem.extract"); +const QuickScript = include("engines.wine.quick_script.quick_script"); +const Downloader = include("utils.functions.net.download"); +const Wine = include("engines.wine.engine.object"); +const {Extractor} = include("utils.functions.filesystem.extract"); + include("engines.wine.verbs.luna"); -class ZipScript extends QuickScript { +module.default = class ZipScript extends QuickScript { constructor() { super(); } diff --git a/Engines/Wine/Settings/DirectDraw renderer/script.js b/Engines/Wine/Settings/DirectDraw renderer/script.js index 2563942965..a94cd5b171 100644 --- a/Engines/Wine/Settings/DirectDraw renderer/script.js +++ b/Engines/Wine/Settings/DirectDraw renderer/script.js @@ -1,11 +1,12 @@ -include("engines.wine.engine.object"); +const Wine = include("engines.wine.engine.object"); + include("engines.wine.plugins.regedit"); /** * setting to set the DirectDraw renderer */ // eslint-disable-next-line no-unused-vars -class DirectDrawRendererSetting { +module.default = class DirectDrawRendererSetting { constructor() { this.options = [tr("Default"), tr("GDI"), tr("OpenGL")]; // values which are written into the registry, do not translate! diff --git a/Engines/Wine/Settings/Font smoothing/script.js b/Engines/Wine/Settings/Font smoothing/script.js index d346f95c39..b781688000 100644 --- a/Engines/Wine/Settings/Font smoothing/script.js +++ b/Engines/Wine/Settings/Font smoothing/script.js @@ -1,4 +1,5 @@ -include("engines.wine.engine.object"); +const Wine = include("engines.wine.engine.object"); + include("engines.wine.plugins.regedit"); include("engines.wine.plugins.font_smoothing"); @@ -6,7 +7,7 @@ include("engines.wine.plugins.font_smoothing"); * Setting to set the Fonts Smoothing */ // eslint-disable-next-line no-unused-vars -class FontSmoothingSetting { +module.default = class FontSmoothingSetting { constructor() { this.options = [tr("Default"), tr("RGB"), tr("BGR"), tr("Gray Scale")]; } diff --git a/Engines/Wine/Settings/GLSL/script.js b/Engines/Wine/Settings/GLSL/script.js index 97be8541b8..af17d73e85 100644 --- a/Engines/Wine/Settings/GLSL/script.js +++ b/Engines/Wine/Settings/GLSL/script.js @@ -1,11 +1,12 @@ -include("engines.wine.engine.object"); +const Wine = include("engines.wine.engine.object"); + include("engines.wine.plugins.regedit"); /** * Setting to enable/disable GLSL */ // eslint-disable-next-line no-unused-vars -class GLSLSetting { +module.default = class GLSLSetting { constructor() { this.options = [tr("Default"), tr("Disabled"), tr("Enabled")]; // values which are written into the registry, do not translate! diff --git a/Engines/Wine/Settings/UseTakeFocus/script.js b/Engines/Wine/Settings/UseTakeFocus/script.js index b91da53e20..31eb1a796c 100644 --- a/Engines/Wine/Settings/UseTakeFocus/script.js +++ b/Engines/Wine/Settings/UseTakeFocus/script.js @@ -1,4 +1,5 @@ -include("engines.wine.engine.object"); +const Wine = include("engines.wine.engine.object"); + include("engines.wine.plugins.regedit"); include("engines.wine.plugins.usetakefocus"); @@ -6,7 +7,7 @@ include("engines.wine.plugins.usetakefocus"); * Setting to enable/disable UseTakeFocus */ // eslint-disable-next-line no-unused-vars -class UseTakeFocusSetting { +module.default = class UseTakeFocusSetting { constructor() { this.options = [tr("Default"), tr("Disabled"), tr("Enabled")]; // values which are written into the registry, do not translate! diff --git a/Engines/Wine/Settings/always offscreen/script.js b/Engines/Wine/Settings/always offscreen/script.js index 1ab5f6fd10..7b4750e158 100644 --- a/Engines/Wine/Settings/always offscreen/script.js +++ b/Engines/Wine/Settings/always offscreen/script.js @@ -1,11 +1,12 @@ -include("engines.wine.engine.object"); +const Wine = include("engines.wine.engine.object"); + include("engines.wine.plugins.regedit"); /** * setting to set always offscreen */ // eslint-disable-next-line no-unused-vars -class AlwaysOffscreenSetting { +module.default = class AlwaysOffscreenSetting { constructor() { this.options = [tr("Default"), tr("Disabled"), tr("Enabled")]; // values which are written into the registry, do not translate! diff --git a/Engines/Wine/Settings/hdpi/script.js b/Engines/Wine/Settings/hdpi/script.js index 7363817ab8..84a35cd1ea 100644 --- a/Engines/Wine/Settings/hdpi/script.js +++ b/Engines/Wine/Settings/hdpi/script.js @@ -1,11 +1,12 @@ -include("engines.wine.engine.object"); +const Wine = include("engines.wine.engine.object"); + include("engines.wine.plugins.hdpi"); /** * Setting to enable/disable Retina */ // eslint-disable-next-line no-unused-vars -class HDPISetting { +module.default = class HDPISetting { constructor() { this.options = [tr("Disabled"), tr("Enabled")]; } diff --git a/Engines/Wine/Settings/mouse warp override/script.js b/Engines/Wine/Settings/mouse warp override/script.js index e7afb91035..0b932b4ab2 100644 --- a/Engines/Wine/Settings/mouse warp override/script.js +++ b/Engines/Wine/Settings/mouse warp override/script.js @@ -1,11 +1,12 @@ -include("engines.wine.engine.object"); +const Wine = include("engines.wine.engine.object"); + include("engines.wine.plugins.regedit"); /** * Setting to configure mouse warp override */ // eslint-disable-next-line no-unused-vars -class MouseWarpOverrideSetting { +module.default = class MouseWarpOverrideSetting { constructor() { this.options = [tr("Default"), tr("Disabled"), tr("Enabled"), tr("Force")]; // values which are written into the registry, do not translate! diff --git a/Engines/Wine/Settings/multisampling/script.js b/Engines/Wine/Settings/multisampling/script.js index 4513c460c1..9f9cc02203 100644 --- a/Engines/Wine/Settings/multisampling/script.js +++ b/Engines/Wine/Settings/multisampling/script.js @@ -1,11 +1,12 @@ -include("engines.wine.engine.object"); +const Wine = include("engines.wine.engine.object"); + include("engines.wine.plugins.regedit"); /** * Setting to configure multisampling */ // eslint-disable-next-line no-unused-vars -class MultisamplingSetting { +module.default = class MultisamplingSetting { constructor() { this.options = [tr("Default"), tr("Disabled"), tr("Enabled")]; // values which are written into the registry, do not translate! diff --git a/Engines/Wine/Settings/offscreen rendering mode/script.js b/Engines/Wine/Settings/offscreen rendering mode/script.js index 639fda4043..668b84deb0 100644 --- a/Engines/Wine/Settings/offscreen rendering mode/script.js +++ b/Engines/Wine/Settings/offscreen rendering mode/script.js @@ -1,11 +1,12 @@ -include("engines.wine.engine.object"); +const Wine = include("engines.wine.engine.object"); + include("engines.wine.plugins.regedit"); /** * Setting to set the offscreen rendering mode */ // eslint-disable-next-line no-unused-vars -class OffscreenRenderingModeSetting { +module.default = class OffscreenRenderingModeSetting { constructor() { this.options = [tr("Default"), tr("FBO"), tr("Backbuffer")]; // values which are written into the registry, do not translate! diff --git a/Engines/Wine/Settings/render target lock mode/script.js b/Engines/Wine/Settings/render target lock mode/script.js index 4a48151abe..c063e03ce1 100644 --- a/Engines/Wine/Settings/render target lock mode/script.js +++ b/Engines/Wine/Settings/render target lock mode/script.js @@ -1,11 +1,12 @@ -include("engines.wine.engine.object"); +const Wine = include("engines.wine.engine.object"); + include("engines.wine.plugins.regedit"); /** * Setting to set the render target lock mode */ // eslint-disable-next-line no-unused-vars -class RenderTargetModeLockSetting { +module.default = class RenderTargetModeLockSetting { constructor() { this.options = [tr("Default"), tr("Disabled"), tr("readdraw"), tr("readtext")]; // values which are written into the registry, do not translate! diff --git a/Engines/Wine/Settings/strict draw ordering/script.js b/Engines/Wine/Settings/strict draw ordering/script.js index 8990e8e5e0..6a7afa4520 100644 --- a/Engines/Wine/Settings/strict draw ordering/script.js +++ b/Engines/Wine/Settings/strict draw ordering/script.js @@ -1,11 +1,12 @@ -include("engines.wine.engine.object"); +const Wine = include("engines.wine.engine.object"); + include("engines.wine.plugins.regedit"); /** * Setting to configure strict draw ordering */ // eslint-disable-next-line no-unused-vars -class StrictDrawOrderingSetting { +module.default = class StrictDrawOrderingSetting { constructor() { this.options = [tr("Default"), tr("Disabled"), tr("Enabled")]; // values which are written into the registry, do not translate! diff --git a/Engines/Wine/Settings/video memory size/script.js b/Engines/Wine/Settings/video memory size/script.js index 3101f7869b..37a1428fec 100644 --- a/Engines/Wine/Settings/video memory size/script.js +++ b/Engines/Wine/Settings/video memory size/script.js @@ -1,11 +1,12 @@ -include("engines.wine.engine.object"); +const Wine = include("engines.wine.engine.object"); + include("engines.wine.plugins.regedit"); /** * Setting to set the video memory size */ // eslint-disable-next-line no-unused-vars -class VideoMemorySizeSetting { +module.default = class VideoMemorySizeSetting { constructor() { this.options = [tr("Default"), "64", "384", "1024", "4096", "7168"]; // values which are written into the registry, do not translate! diff --git a/Engines/Wine/Shortcuts/Reader/script.js b/Engines/Wine/Shortcuts/Reader/script.js index b06421ffbb..5be38e656d 100644 --- a/Engines/Wine/Shortcuts/Reader/script.js +++ b/Engines/Wine/Shortcuts/Reader/script.js @@ -1,4 +1,6 @@ -include("engines.wine.engine.object"); +const Wine = include("engines.wine.engine.object"); +const {WINE_PREFIX_DIR} = include("engines.wine.engine.constants"); +const {remove} = include("utils.functions.filesystem.files"); class WineShortcutReader { constructor(shortcut) { @@ -63,7 +65,7 @@ class WineShortcutReader { } } -class ShortcutReader { +module.default = class ShortcutReader { constructor() { // do nothing } diff --git a/Engines/Wine/Shortcuts/Wine/script.js b/Engines/Wine/Shortcuts/Wine/script.js index a1595a1fe3..22a84b544b 100644 --- a/Engines/Wine/Shortcuts/Wine/script.js +++ b/Engines/Wine/Shortcuts/Wine/script.js @@ -1,4 +1,4 @@ -include("engines.wine.engine.object"); +const {WINE_PREFIX_DIR} = include("engines.wine.engine.constants"); const ShortcutInfoDTOBuilderClass = Java.type("org.phoenicis.library.dto.ShortcutInfoDTO.Builder"); const ShortcutDTOBuilderClass = Java.type("org.phoenicis.library.dto.ShortcutDTO.Builder"); @@ -7,7 +7,7 @@ const ShortcutDTOBuilderClass = Java.type("org.phoenicis.library.dto.ShortcutDTO * WineShortcut prototype */ // eslint-disable-next-line no-unused-vars -class WineShortcut { +module.default = class WineShortcut { constructor() { this._shortcutManager = Bean("shortcutManager"); this._appsManager = Bean("repositoryManager"); diff --git a/Engines/Wine/Tools/Configure Wine/script.js b/Engines/Wine/Tools/Configure Wine/script.js index 7ce29cedcb..a9b6d8ada4 100644 --- a/Engines/Wine/Tools/Configure Wine/script.js +++ b/Engines/Wine/Tools/Configure Wine/script.js @@ -1,10 +1,10 @@ -include("engines.wine.engine.object"); +const Wine = include("engines.wine.engine.object"); /** * Tool to configure Wine */ // eslint-disable-next-line no-unused-vars -class ConfigureWineTool { +module.default = class ConfigureWineTool { constructor() { // do nothing } diff --git a/Engines/Wine/Tools/Kill Wine Processes/script.js b/Engines/Wine/Tools/Kill Wine Processes/script.js index ec2ef2bb45..4cc1581ca0 100644 --- a/Engines/Wine/Tools/Kill Wine Processes/script.js +++ b/Engines/Wine/Tools/Kill Wine Processes/script.js @@ -1,10 +1,10 @@ -include("engines.wine.engine.object"); +const Wine = include("engines.wine.engine.object"); /** * Tool to kill running Wine processes */ // eslint-disable-next-line no-unused-vars -class KillWineProcessesTool { +module.default = class KillWineProcessesTool { constructor() { // do nothing } diff --git a/Engines/Wine/Tools/Reboot Wine/script.js b/Engines/Wine/Tools/Reboot Wine/script.js index d6ac5db917..de5b597ab4 100644 --- a/Engines/Wine/Tools/Reboot Wine/script.js +++ b/Engines/Wine/Tools/Reboot Wine/script.js @@ -1,10 +1,10 @@ -include("engines.wine.engine.object"); +const Wine = include("engines.wine.engine.object"); /** * Tool to reboot Wine */ // eslint-disable-next-line no-unused-vars -class RebootWineTool { +module.default = class RebootWineTool { constructor() { // do nothing } diff --git a/Engines/Wine/Tools/Repair Wine Prefix/script.js b/Engines/Wine/Tools/Repair Wine Prefix/script.js index 8ba36d0b3f..cb756fb1d6 100644 --- a/Engines/Wine/Tools/Repair Wine Prefix/script.js +++ b/Engines/Wine/Tools/Repair Wine Prefix/script.js @@ -1,10 +1,10 @@ -include("engines.wine.engine.object"); +const Wine = include("engines.wine.engine.object"); /** * Tool to repair a Wine prefix */ // eslint-disable-next-line no-unused-vars -class RepairWinePrefixTool { +module.default = class RepairWinePrefixTool { constructor() { // do nothing } diff --git a/Engines/Wine/Tools/Wine Registry Editor/script.js b/Engines/Wine/Tools/Wine Registry Editor/script.js index 482f0e95ee..ff341a7318 100644 --- a/Engines/Wine/Tools/Wine Registry Editor/script.js +++ b/Engines/Wine/Tools/Wine Registry Editor/script.js @@ -1,11 +1,12 @@ -include("engines.wine.engine.object"); +const Wine = include("engines.wine.engine.object"); + include("engines.wine.plugins.regedit"); /** * Tool to open the Wine registry editor */ // eslint-disable-next-line no-unused-vars -class WineRegistryEditorTool { +module.default = class WineRegistryEditorTool { constructor() { // do nothing } diff --git a/Engines/Wine/Tools/Wine Task Manager/script.js b/Engines/Wine/Tools/Wine Task Manager/script.js index 54f980d47f..ba50606f37 100644 --- a/Engines/Wine/Tools/Wine Task Manager/script.js +++ b/Engines/Wine/Tools/Wine Task Manager/script.js @@ -1,10 +1,10 @@ -include("engines.wine.engine.object"); +const Wine = include("engines.wine.engine.object"); /** * Tool to open the Wine task manager */ // eslint-disable-next-line no-unused-vars -class WineTaskManagerTool { +module.default = class WineTaskManagerTool { constructor() { // do nothing } diff --git a/Engines/Wine/Tools/Wine Terminal Opener/script.js b/Engines/Wine/Tools/Wine Terminal Opener/script.js index 2feb3ab0d8..b31fece114 100644 --- a/Engines/Wine/Tools/Wine Terminal Opener/script.js +++ b/Engines/Wine/Tools/Wine Terminal Opener/script.js @@ -1,10 +1,10 @@ -include("engines.wine.engine.object"); +const Wine = include("engines.wine.engine.object"); /** * Tool to open a terminal in a Wine prefix */ // eslint-disable-next-line no-unused-vars -class WineTerminalOpenerTool { +module.default = class WineTerminalOpenerTool { constructor() { this.terminalOpener = Bean("terminalOpener"); } diff --git a/Engines/Wine/Tools/Wine Uninstaller/script.js b/Engines/Wine/Tools/Wine Uninstaller/script.js index a1b0e095a2..df4966b621 100644 --- a/Engines/Wine/Tools/Wine Uninstaller/script.js +++ b/Engines/Wine/Tools/Wine Uninstaller/script.js @@ -1,10 +1,10 @@ -include("engines.wine.engine.object"); +const Wine = include("engines.wine.engine.object"); /** * Tool to uninstall Wine */ // eslint-disable-next-line no-unused-vars -class UninstallWineTool { +module.default = class UninstallWineTool { constructor() { // do nothing } diff --git a/Engines/Wine/Tools/WineConsole/script.js b/Engines/Wine/Tools/WineConsole/script.js index ba238e017c..339b355876 100644 --- a/Engines/Wine/Tools/WineConsole/script.js +++ b/Engines/Wine/Tools/WineConsole/script.js @@ -1,10 +1,10 @@ -include("engines.wine.engine.object"); +const Wine = include("engines.wine.engine.object"); /** * Tool to open a Wine console */ // eslint-disable-next-line no-unused-vars -class WineConsoleTool { +module.default = class WineConsoleTool { constructor() { // do nothing } diff --git a/Engines/Wine/Verbs/D9VK/script.js b/Engines/Wine/Verbs/D9VK/script.js index e37b3eeeba..afa41ff970 100644 --- a/Engines/Wine/Verbs/D9VK/script.js +++ b/Engines/Wine/Verbs/D9VK/script.js @@ -1,7 +1,9 @@ -include("engines.wine.engine.object"); +const Wine = include("engines.wine.engine.object"); +const Resource = include("utils.functions.net.resource"); +const {Extractor} = include("utils.functions.filesystem.extract"); +const {ls, cp, remove} = include("utils.functions.filesystem.files"); + include("engines.wine.plugins.override_dll"); -include("utils.functions.net.resource"); -include("utils.functions.filesystem.files"); /** * Verb to install D9VK @@ -72,7 +74,7 @@ Wine.prototype.D9VK = function (d9vkVersion) { * Verb to install D9VK */ // eslint-disable-next-line no-unused-vars -class D9VKVerb { +module.default = class D9VKVerb { constructor() { // do nothing } diff --git a/Engines/Wine/Verbs/DXVK/script.js b/Engines/Wine/Verbs/DXVK/script.js index 0146afbb04..ec17de3548 100644 --- a/Engines/Wine/Verbs/DXVK/script.js +++ b/Engines/Wine/Verbs/DXVK/script.js @@ -1,7 +1,9 @@ -include("engines.wine.engine.object"); +const Wine = include("engines.wine.engine.object"); +const Resource = include("utils.functions.net.resource"); +const {Extractor} = include("utils.functions.filesystem.extract"); +const {ls, cp, cat, remove} = include("utils.functions.filesystem.files"); + include("engines.wine.plugins.override_dll"); -include("utils.functions.net.resource"); -include("utils.functions.filesystem.files"); /** * Verb to install DXVK @@ -77,7 +79,7 @@ Wine.prototype.DXVK = function (dxvkVersion) { * Verb to install DXVK */ // eslint-disable-next-line no-unused-vars -class DXVKVerb { +module.default = class DXVKVerb { constructor() { // do nothing } diff --git a/Engines/Wine/Verbs/FAudio/script.js b/Engines/Wine/Verbs/FAudio/script.js index 7d2acd4045..344a23083e 100644 --- a/Engines/Wine/Verbs/FAudio/script.js +++ b/Engines/Wine/Verbs/FAudio/script.js @@ -1,7 +1,9 @@ -include("engines.wine.engine.object"); +const Wine = include("engines.wine.engine.object"); +const Resource = include("utils.functions.net.resource"); +const {Extractor} = include("utils.functions.filesystem.extract"); +const {ls, cp} = include("utils.functions.filesystem.files"); + include("engines.wine.plugins.override_dll"); -include("utils.functions.net.resource"); -include("utils.functions.filesystem.files"); /** * Verb to install FAudio @@ -57,7 +59,7 @@ Wine.prototype.faudio = function (faudioVersion) { * Verb to install FAudio */ // eslint-disable-next-line no-unused-vars -class FAudioVerb { +module.default = class FAudioVerb { constructor() { // do nothing } diff --git a/Engines/Wine/Verbs/PhysX/script.js b/Engines/Wine/Verbs/PhysX/script.js index 5fc17e02ea..61eca9476f 100644 --- a/Engines/Wine/Verbs/PhysX/script.js +++ b/Engines/Wine/Verbs/PhysX/script.js @@ -1,5 +1,6 @@ -include("engines.wine.engine.object"); -include("utils.functions.net.resource"); +const Wine = include("engines.wine.engine.object"); +const Resource = include("utils.functions.net.resource"); + include("engines.wine.verbs.luna"); /** @@ -25,7 +26,7 @@ Wine.prototype.physx = function () { * Verb to install Nvidia PhysX */ // eslint-disable-next-line no-unused-vars -class PhysXVerb { +module.default = class PhysXVerb { constructor() { // do nothing } diff --git a/Engines/Wine/Verbs/QuickTime 7.6/script.js b/Engines/Wine/Verbs/QuickTime 7.6/script.js index 818caaba9c..8bd2a6ec64 100644 --- a/Engines/Wine/Verbs/QuickTime 7.6/script.js +++ b/Engines/Wine/Verbs/QuickTime 7.6/script.js @@ -1,5 +1,5 @@ -include("engines.wine.engine.object"); -include("utils.functions.net.resource"); +const Wine = include("engines.wine.engine.object"); +const Resource = include("utils.functions.net.resource"); /** * Verb to install QuickTime 7.6 @@ -24,7 +24,7 @@ Wine.prototype.quicktime76 = function () { * Verb to install QuickTime 7.6 */ // eslint-disable-next-line no-unused-vars -class QuickTime76Verb { +module.default = class QuickTime76Verb { constructor() { // do nothing } diff --git a/Engines/Wine/Verbs/Remove Mono/script.js b/Engines/Wine/Verbs/Remove Mono/script.js index bb8f8878b9..415cc61c92 100644 --- a/Engines/Wine/Verbs/Remove Mono/script.js +++ b/Engines/Wine/Verbs/Remove Mono/script.js @@ -1,5 +1,6 @@ -include("engines.wine.engine.object"); -include("utils.functions.filesystem.files"); +const Wine = include("engines.wine.engine.object"); +const {remove} = include("utils.functions.filesystem.files"); + include("engines.wine.plugins.regedit"); /** @@ -31,7 +32,7 @@ Wine.prototype.removeMono = function () { * Verb to remove mono */ // eslint-disable-next-line no-unused-vars -class RemoveMonoVerb { +module.default = class RemoveMonoVerb { constructor() { // do nothing } diff --git a/Engines/Wine/Verbs/Tahoma/script.js b/Engines/Wine/Verbs/Tahoma/script.js index c6d8ab2a58..93f52135a0 100644 --- a/Engines/Wine/Verbs/Tahoma/script.js +++ b/Engines/Wine/Verbs/Tahoma/script.js @@ -1,9 +1,10 @@ -include("engines.wine.engine.object"); +const Wine = include("engines.wine.engine.object"); +const Resource = include("utils.functions.net.resource"); +const {cp} = include("utils.functions.filesystem.files"); +const {CabExtract} = include("utils.functions.filesystem.extract"); + include("engines.wine.plugins.register_font"); -include("utils.functions.net.resource"); include("engines.wine.verbs.luna"); -include("utils.functions.filesystem.files"); -include("utils.functions.filesystem.extract"); /** * Verb to install the Tahoma font @@ -38,7 +39,7 @@ Wine.prototype.tahoma = function () { * Verb to install the Tahoma font */ // eslint-disable-next-line no-unused-vars -class TahomaVerb { +module.default = class TahomaVerb { constructor() { // do nothing } diff --git a/Engines/Wine/Verbs/Uplay/script.js b/Engines/Wine/Verbs/Uplay/script.js index 37aa0d5f77..73a98ac6b1 100644 --- a/Engines/Wine/Verbs/Uplay/script.js +++ b/Engines/Wine/Verbs/Uplay/script.js @@ -1,5 +1,5 @@ -include("engines.wine.engine.object"); -include("utils.functions.net.resource"); +const Wine = include("engines.wine.engine.object"); +const Resource = include("utils.functions.net.resource"); /** * Verb to install Uplay @@ -23,7 +23,7 @@ Wine.prototype.uplay = function () { * Verb to install Uplay */ // eslint-disable-next-line no-unused-vars -class UplayVerb { +module.default = class UplayVerb { constructor() { // do nothing } diff --git a/Engines/Wine/Verbs/VK9/script.js b/Engines/Wine/Verbs/VK9/script.js index 200f2ce756..b5075ec1e0 100644 --- a/Engines/Wine/Verbs/VK9/script.js +++ b/Engines/Wine/Verbs/VK9/script.js @@ -1,7 +1,9 @@ -include("engines.wine.engine.object"); +const Wine = include("engines.wine.engine.object"); +const Resource = include("utils.functions.net.resource"); +const {Extractor} = include("utils.functions.filesystem.extract"); +const {cp, remove} = include("utils.functions.filesystem.files"); + include("engines.wine.plugins.override_dll"); -include("utils.functions.net.resource"); -include("utils.functions.filesystem.files"); /** * Verb to install VK9 @@ -71,7 +73,7 @@ Wine.prototype.VK9 = function (vk9Version) { * Verb to install VK9 */ // eslint-disable-next-line no-unused-vars -class VK9Verb { +module.default = class VK9Verb { constructor() { // do nothing } diff --git a/Engines/Wine/Verbs/Windows XP SP 3/script.js b/Engines/Wine/Verbs/Windows XP SP 3/script.js index 2333e25e27..4fc2a00b4e 100644 --- a/Engines/Wine/Verbs/Windows XP SP 3/script.js +++ b/Engines/Wine/Verbs/Windows XP SP 3/script.js @@ -1,6 +1,7 @@ -include("engines.wine.engine.object"); -include("utils.functions.filesystem.files"); -include("utils.functions.net.resource"); +const Wine = include("engines.wine.engine.object"); +const Resource = include("utils.functions.net.resource"); +const {CabExtract} = include("utils.functions.filesystem.extract"); +const {remove, fileName} = include("utils.functions.filesystem.files"); /** * Verb to install Windows XP Service Pack 3 @@ -45,7 +46,7 @@ Wine.prototype.sp3extract = function (fileToExtract) { * Verb to install Windows XP Service Pack 3 */ // eslint-disable-next-line no-unused-vars -class WindowsXPSP3Verb { +module.default = class WindowsXPSP3Verb { constructor() { // do nothing } diff --git a/Engines/Wine/Verbs/adobeair/script.js b/Engines/Wine/Verbs/adobeair/script.js index c49fd1fe93..f217724a7a 100644 --- a/Engines/Wine/Verbs/adobeair/script.js +++ b/Engines/Wine/Verbs/adobeair/script.js @@ -1,6 +1,7 @@ -include("engines.wine.engine.object"); +const Wine = include("engines.wine.engine.object"); +const Resource = include("utils.functions.net.resource"); + include("engines.wine.plugins.windows_version"); -include("utils.functions.net.resource"); /** * Verb to install adobeair @@ -33,7 +34,7 @@ Wine.prototype.adobeair = function () { * Verb to install adobeair */ // eslint-disable-next-line no-unused-vars -class AdobeAirVerb { +module.default = class AdobeAirVerb { constructor() { // do nothing } diff --git a/Engines/Wine/Verbs/amstream/script.js b/Engines/Wine/Verbs/amstream/script.js index 105deaf0cf..f5dc4fa345 100644 --- a/Engines/Wine/Verbs/amstream/script.js +++ b/Engines/Wine/Verbs/amstream/script.js @@ -1,11 +1,11 @@ -include("engines.wine.engine.object"); +const Wine = include("engines.wine.engine.object"); +const Resource = include("utils.functions.net.resource"); +const {cp, remove} = include("utils.functions.filesystem.files"); +const {CabExtract} = include("utils.functions.filesystem.extract"); + include("engines.wine.plugins.override_dll"); -include("utils.functions.net.resource"); -include("engines.wine.verbs.luna"); -include("utils.functions.filesystem.files"); -include("utils.functions.filesystem.extract"); include("engines.wine.plugins.regsvr32"); - +include("engines.wine.verbs.luna"); /** * Verb to install amstream @@ -60,7 +60,7 @@ Wine.prototype.amstream = function () { * Verb to install amstream */ // eslint-disable-next-line no-unused-vars -class AmstreamVerb { +module.default = class AmstreamVerb { constructor() { // do nothing } diff --git a/Engines/Wine/Verbs/atmlib/script.js b/Engines/Wine/Verbs/atmlib/script.js index ad42a116a1..6abd9e84de 100644 --- a/Engines/Wine/Verbs/atmlib/script.js +++ b/Engines/Wine/Verbs/atmlib/script.js @@ -1,6 +1,7 @@ -include("engines.wine.engine.object"); -include("utils.functions.net.resource"); -include("utils.functions.filesystem.files"); +const Wine = include("engines.wine.engine.object"); +const Resource = include("utils.functions.net.resource"); +const {CabExtract} = include("utils.functions.filesystem.extract"); +const {remove} = include("utils.functions.filesystem.files"); /** * Verb to install atmlib @@ -36,7 +37,7 @@ Wine.prototype.atmlib = function () { * Verb to install atmlib */ // eslint-disable-next-line no-unused-vars -class AtmlibVerb { +module.default = class AtmlibVerb { constructor() { // do nothing } diff --git a/Engines/Wine/Verbs/corefonts/script.js b/Engines/Wine/Verbs/corefonts/script.js index bb97614abc..e6f199c5c0 100644 --- a/Engines/Wine/Verbs/corefonts/script.js +++ b/Engines/Wine/Verbs/corefonts/script.js @@ -1,6 +1,8 @@ -include("engines.wine.engine.object"); +const Wine = include("engines.wine.engine.object"); +const Resource = include("utils.functions.net.resource"); +const {CabExtract} = include("utils.functions.filesystem.extract"); + include("engines.wine.plugins.register_font"); -include("utils.functions.net.resource"); include("engines.wine.verbs.luna"); /** @@ -140,7 +142,7 @@ Wine.prototype.corefonts = function () { * Verb to install corefonts */ // eslint-disable-next-line no-unused-vars -class CorefontsVerb { +module.default = class CorefontsVerb { constructor() { // do nothing } diff --git a/Engines/Wine/Verbs/crypt32/script.js b/Engines/Wine/Verbs/crypt32/script.js index c6927c6f56..8e45812b4a 100644 --- a/Engines/Wine/Verbs/crypt32/script.js +++ b/Engines/Wine/Verbs/crypt32/script.js @@ -1,4 +1,5 @@ -include("engines.wine.engine.object"); +const Wine = include("engines.wine.engine.object"); + include("engines.wine.plugins.override_dll"); include("engines.wine.verbs.sp3extract"); @@ -20,7 +21,7 @@ Wine.prototype.crypt32 = function () { * Verb to install crypt32 */ // eslint-disable-next-line no-unused-vars -class Crypt32Verb { +module.default = class Crypt32Verb { constructor() { // do nothing } diff --git a/Engines/Wine/Verbs/d3drm/script.js b/Engines/Wine/Verbs/d3drm/script.js index f350543b4c..8d280b50a9 100644 --- a/Engines/Wine/Verbs/d3drm/script.js +++ b/Engines/Wine/Verbs/d3drm/script.js @@ -1,9 +1,9 @@ -include("engines.wine.engine.object"); +const Wine = include("engines.wine.engine.object"); +const Resource = include("utils.functions.net.resource"); +const {CabExtract} = include("utils.functions.filesystem.extract"); + include("engines.wine.plugins.override_dll"); -include("utils.functions.net.resource"); include("engines.wine.verbs.luna"); -include("utils.functions.filesystem.files"); -include("utils.functions.filesystem.extract"); /** * Verb to install d3drm @@ -41,7 +41,7 @@ Wine.prototype.d3drm = function () { * Verb to install d3drm */ // eslint-disable-next-line no-unused-vars -class D3drmVerb { +module.default = class D3drmVerb { constructor() { // do nothing } diff --git a/Engines/Wine/Verbs/d3dx10/script.js b/Engines/Wine/Verbs/d3dx10/script.js index 317a41f2bd..c2697129b3 100644 --- a/Engines/Wine/Verbs/d3dx10/script.js +++ b/Engines/Wine/Verbs/d3dx10/script.js @@ -1,6 +1,8 @@ -include("engines.wine.engine.object"); +const Wine = include("engines.wine.engine.object"); +const Resource = include("utils.functions.net.resource"); +const {CabExtract} = include("utils.functions.filesystem.extract"); + include("engines.wine.plugins.override_dll"); -include("utils.functions.net.resource"); /** * Verb to install D3DX10 @@ -79,7 +81,7 @@ Wine.prototype.d3dx10 = function () { * Verb to install D3DX10 */ // eslint-disable-next-line no-unused-vars -class D3DX10Verb { +module.default = class D3DX10Verb { constructor() { // do nothing } diff --git a/Engines/Wine/Verbs/d3dx11/script.js b/Engines/Wine/Verbs/d3dx11/script.js index 014723f4c4..546f3c6004 100644 --- a/Engines/Wine/Verbs/d3dx11/script.js +++ b/Engines/Wine/Verbs/d3dx11/script.js @@ -1,6 +1,8 @@ -include("engines.wine.engine.object"); +const Wine = include("engines.wine.engine.object"); +const Resource = include("utils.functions.net.resource"); +const {CabExtract} = include("utils.functions.filesystem.extract"); + include("engines.wine.plugins.override_dll"); -include("utils.functions.net.resource"); /** * Verb to install D3DX11 @@ -66,7 +68,7 @@ Wine.prototype.d3dx11 = function () { * Verb to install D3DX11 */ // eslint-disable-next-line no-unused-vars -class D3DX11Verb { +module.default = class D3DX11Verb { constructor() { // do nothing } diff --git a/Engines/Wine/Verbs/d3dx9/script.js b/Engines/Wine/Verbs/d3dx9/script.js index 388f0ea862..86025d6d2e 100644 --- a/Engines/Wine/Verbs/d3dx9/script.js +++ b/Engines/Wine/Verbs/d3dx9/script.js @@ -1,6 +1,8 @@ -include("engines.wine.engine.object"); +const Wine = include("engines.wine.engine.object"); +const Resource = include("utils.functions.net.resource"); +const {CabExtract} = include("utils.functions.filesystem.extract"); + include("engines.wine.plugins.override_dll"); -include("utils.functions.net.resource"); /** * Verb to install D3DX9 @@ -86,7 +88,7 @@ Wine.prototype.d3dx9 = function () { * Verb to install D3DX9 */ // eslint-disable-next-line no-unused-vars -class D3DX9Verb { +module.default = class D3DX9Verb { constructor() { // do nothing } diff --git a/Engines/Wine/Verbs/devenum/script.js b/Engines/Wine/Verbs/devenum/script.js index 11728087eb..b051315f67 100644 --- a/Engines/Wine/Verbs/devenum/script.js +++ b/Engines/Wine/Verbs/devenum/script.js @@ -1,10 +1,10 @@ -include("engines.wine.engine.object"); +const Wine = include("engines.wine.engine.object"); +const Resource = include("utils.functions.net.resource"); +const {CabExtract} = include("utils.functions.filesystem.extract"); + include("engines.wine.plugins.override_dll"); -include("utils.functions.net.resource"); -include("engines.wine.verbs.luna"); -include("utils.functions.filesystem.files"); -include("utils.functions.filesystem.extract"); include("engines.wine.plugins.regsvr32"); +include("engines.wine.verbs.luna"); /** * Verb to install devenum @@ -18,15 +18,19 @@ Wine.prototype.devenum = function () { .checksum("a97c820915dc20929e84b49646ec275760012a42") .name("directx_feb2010_redist.exe") .get(); + this.wizard().wait(tr("Please wait while {0} is installed...", "devenum")); + new CabExtract() .archive(setupFile) .to(this.prefixDirectory() + "/drive_c/devenum/") .extract(["-L", "-F", "dxnt.cab"]); + new CabExtract() .archive(this.prefixDirectory() + "/drive_c/devenum/dxnt.cab") .to(this.system32directory()) .extract(["-L", "-F", "devenum.dll"]); + this.regsvr32().install("devenum.dll"); this.overrideDLL() .set("native", ["devenum"]) @@ -39,7 +43,7 @@ Wine.prototype.devenum = function () { * Verb to install devenum */ // eslint-disable-next-line no-unused-vars -class DevenumVerb { +module.default = class DevenumVerb { constructor() { // do nothing } diff --git a/Engines/Wine/Verbs/dotnet20/script.js b/Engines/Wine/Verbs/dotnet20/script.js index e999c18676..850b2f4555 100644 --- a/Engines/Wine/Verbs/dotnet20/script.js +++ b/Engines/Wine/Verbs/dotnet20/script.js @@ -1,7 +1,8 @@ -include("engines.wine.engine.object"); +const Wine = include("engines.wine.engine.object"); +const Resource = include("utils.functions.net.resource"); +const {remove} = include("utils.functions.filesystem.files"); + include("engines.wine.plugins.override_dll"); -include("utils.functions.net.resource"); -include("utils.functions.filesystem.files"); include("engines.wine.plugins.windows_version"); include("engines.wine.verbs.remove_mono"); diff --git a/Engines/Wine/Verbs/dotnet20sp2/script.js b/Engines/Wine/Verbs/dotnet20sp2/script.js index 95dd0bbb65..1a0540799b 100644 --- a/Engines/Wine/Verbs/dotnet20sp2/script.js +++ b/Engines/Wine/Verbs/dotnet20sp2/script.js @@ -1,12 +1,11 @@ -include("engines.wine.engine.object"); +const Wine = include("engines.wine.engine.object"); +const Resource = include("utils.functions.net.resource"); +const {remove} = include("utils.functions.filesystem.files"); + include("engines.wine.plugins.override_dll"); -include("utils.functions.net.resource"); -include("utils.functions.filesystem.files"); include("engines.wine.plugins.windows_version"); -include("engines.wine.verbs.remove_mono"); include("engines.wine.plugins.regedit"); - - +include("engines.wine.verbs.remove_mono"); /** * Verb to install .NET 2.0 SP2 @@ -38,7 +37,6 @@ Wine.prototype.dotnet20sp2 = function () { this.wizard().wait(tr("Please wait while {0} is installed...", ".NET Framework 2.0 SP2")); this.run(setupFile32, [setupFile32, "/q", "/c:\"install.exe /q\""], null, false, true); - remove(this.system32directory() + "/msvcr80.dll"); remove(this.system32directory() + "/msvcm80.dll"); remove(this.system32directory() + "/msvcp80.dll"); @@ -59,6 +57,7 @@ Wine.prototype.dotnet20sp2 = function () { this.regedit().deleteValue("HKCU\\Software\\Wine\\DllOverrides", "*ngen.exe"); this.regedit().deleteValue("HKCU\\Software\\Wine\\DllOverrides", "*regsvcs.exe"); this.regedit().deleteValue("HKCU\\Software\\Wine\\DllOverrides", "*mscorsvw.exe"); + return this; }; @@ -66,7 +65,7 @@ Wine.prototype.dotnet20sp2 = function () { * Verb to install dotnet20sp2 */ // eslint-disable-next-line no-unused-vars -class Dotnet20SP2Verb { +module.default = class Dotnet20SP2Verb { constructor() { // do nothing } diff --git a/Engines/Wine/Verbs/dotnet40/script.js b/Engines/Wine/Verbs/dotnet40/script.js index fd3d871797..91f39e594d 100755 --- a/Engines/Wine/Verbs/dotnet40/script.js +++ b/Engines/Wine/Verbs/dotnet40/script.js @@ -1,9 +1,10 @@ -include("engines.wine.engine.object"); +const Wine = include("engines.wine.engine.object"); +const Resource = include("utils.functions.net.resource"); + include("engines.wine.plugins.override_dll"); -include("utils.functions.net.resource"); include("engines.wine.plugins.windows_version"); -include("engines.wine.verbs.remove_mono"); include("engines.wine.plugins.regedit"); +include("engines.wine.verbs.remove_mono"); /** @@ -65,7 +66,7 @@ Wine.prototype.dotnet40 = function () { * Verb to install .NET 4.0 */ // eslint-disable-next-line no-unused-vars -class Dotnet40Verb { +module.default = class Dotnet40Verb { constructor() { // do nothing } diff --git a/Engines/Wine/Verbs/dotnet45/script.js b/Engines/Wine/Verbs/dotnet45/script.js index 7ef33af625..bc8738209f 100755 --- a/Engines/Wine/Verbs/dotnet45/script.js +++ b/Engines/Wine/Verbs/dotnet45/script.js @@ -1,9 +1,10 @@ -include("engines.wine.engine.object"); +const Wine = include("engines.wine.engine.object"); +const Resource = include("utils.functions.net.resource"); + include("engines.wine.plugins.override_dll"); -include("utils.functions.net.resource"); include("engines.wine.plugins.windows_version"); -include("engines.wine.verbs.remove_mono"); include("engines.wine.plugins.regedit"); +include("engines.wine.verbs.remove_mono"); include("engines.wine.verbs.dotnet40"); /** @@ -56,7 +57,7 @@ Wine.prototype.dotnet45 = function () { * Verb to install .NET 4.5 */ // eslint-disable-next-line no-unused-vars -class Dotnet45Verb { +module.default = class Dotnet45Verb { constructor() { // do nothing } diff --git a/Engines/Wine/Verbs/dotnet452/script.js b/Engines/Wine/Verbs/dotnet452/script.js index 3cffba36fc..5969adbcbd 100755 --- a/Engines/Wine/Verbs/dotnet452/script.js +++ b/Engines/Wine/Verbs/dotnet452/script.js @@ -1,9 +1,10 @@ -include("engines.wine.engine.object"); +const Wine = include("engines.wine.engine.object"); +const Resource = include("utils.functions.net.resource"); + include("engines.wine.plugins.override_dll"); -include("utils.functions.net.resource"); include("engines.wine.plugins.windows_version"); -include("engines.wine.verbs.remove_mono"); include("engines.wine.plugins.regedit"); +include("engines.wine.verbs.remove_mono"); include("engines.wine.verbs.dotnet40"); @@ -56,7 +57,7 @@ Wine.prototype.dotnet452 = function () { * Verb to install .NET 4.5.2 */ // eslint-disable-next-line no-unused-vars -class Dotnet452Verb { +module.default = class Dotnet452Verb { constructor() { // do nothing } diff --git a/Engines/Wine/Verbs/dotnet46/script.js b/Engines/Wine/Verbs/dotnet46/script.js index 09e90ff87c..f5621ba435 100755 --- a/Engines/Wine/Verbs/dotnet46/script.js +++ b/Engines/Wine/Verbs/dotnet46/script.js @@ -1,9 +1,10 @@ -include("engines.wine.engine.object"); +const Wine = include("engines.wine.engine.object"); +const Resource = include("utils.functions.net.resource"); + include("engines.wine.plugins.override_dll"); -include("utils.functions.net.resource"); include("engines.wine.plugins.windows_version"); -include("engines.wine.verbs.remove_mono"); include("engines.wine.plugins.regedit"); +include("engines.wine.verbs.remove_mono"); include("engines.wine.verbs.dotnet45"); /** @@ -51,7 +52,7 @@ Wine.prototype.dotnet46 = function () { * Verb to install .NET 4.6 */ // eslint-disable-next-line no-unused-vars -class Dotnet46Verb { +module.default = class Dotnet46Verb { constructor() { // do nothing } diff --git a/Engines/Wine/Verbs/dotnet461/script.js b/Engines/Wine/Verbs/dotnet461/script.js index f7280ccbd3..20351ebfd1 100755 --- a/Engines/Wine/Verbs/dotnet461/script.js +++ b/Engines/Wine/Verbs/dotnet461/script.js @@ -1,9 +1,10 @@ -include("engines.wine.engine.object"); +const Wine = include("engines.wine.engine.object"); +const Resource = include("utils.functions.net.resource"); + include("engines.wine.plugins.override_dll"); -include("utils.functions.net.resource"); include("engines.wine.plugins.windows_version"); -include("engines.wine.verbs.remove_mono"); include("engines.wine.plugins.regedit"); +include("engines.wine.verbs.remove_mono"); include("engines.wine.verbs.dotnet46"); @@ -52,7 +53,7 @@ Wine.prototype.dotnet461 = function () { * Verb to install .NET 4.6.1 */ // eslint-disable-next-line no-unused-vars -class Dotnet461Verb { +module.default = class Dotnet461Verb { constructor() { // do nothing } diff --git a/Engines/Wine/Verbs/dotnet462/script.js b/Engines/Wine/Verbs/dotnet462/script.js index f6b782899f..1772c4f823 100755 --- a/Engines/Wine/Verbs/dotnet462/script.js +++ b/Engines/Wine/Verbs/dotnet462/script.js @@ -1,9 +1,10 @@ -include("engines.wine.engine.object"); +const Wine = include("engines.wine.engine.object"); +const Resource = include("utils.functions.net.resource"); + include("engines.wine.plugins.override_dll"); -include("utils.functions.net.resource"); include("engines.wine.plugins.windows_version"); -include("engines.wine.verbs.remove_mono"); include("engines.wine.plugins.regedit"); +include("engines.wine.verbs.remove_mono"); include("engines.wine.verbs.dotnet461"); @@ -52,7 +53,7 @@ Wine.prototype.dotnet462 = function () { * Verb to install .NET 4.6.2 */ // eslint-disable-next-line no-unused-vars -class Dotnet462Verb { +module.default = class Dotnet462Verb { constructor() { // do nothing } diff --git a/Engines/Wine/Verbs/dotnet472/script.js b/Engines/Wine/Verbs/dotnet472/script.js index d6fcd73baa..d1fb6af5e7 100755 --- a/Engines/Wine/Verbs/dotnet472/script.js +++ b/Engines/Wine/Verbs/dotnet472/script.js @@ -1,9 +1,10 @@ -include("engines.wine.engine.object"); +const Wine = include("engines.wine.engine.object"); +const Resource = include("utils.functions.net.resource"); + include("engines.wine.plugins.override_dll"); -include("utils.functions.net.resource"); include("engines.wine.plugins.windows_version"); -include("engines.wine.verbs.remove_mono"); include("engines.wine.plugins.regedit"); +include("engines.wine.verbs.remove_mono"); include("engines.wine.verbs.dotnet462"); @@ -52,7 +53,7 @@ Wine.prototype.dotnet472 = function () { * Verb to install .NET 4.7.2 */ // eslint-disable-next-line no-unused-vars -class Dotnet472Verb { +module.default = class Dotnet472Verb { constructor() { // do nothing } diff --git a/Engines/Wine/Verbs/gallium9/script.js b/Engines/Wine/Verbs/gallium9/script.js index 1165fbb653..e2c2e7f546 100644 --- a/Engines/Wine/Verbs/gallium9/script.js +++ b/Engines/Wine/Verbs/gallium9/script.js @@ -1,7 +1,9 @@ -include("engines.wine.engine.object"); +const Wine = include("engines.wine.engine.object"); +const Resource = include("utils.functions.net.resource"); +const {Extractor} = include("utils.functions.filesystem.extract"); +const {remove, lns} = include("utils.functions.filesystem.files"); + include("engines.wine.plugins.override_dll"); -include("utils.functions.net.resource"); -include("utils.functions.filesystem.files"); /** * Verb to install Gallium 9 Standalone @@ -78,7 +80,7 @@ Wine.prototype.gallium9 = function (gallium9Version) { * Verb to install Gallium 9 Standalone */ // eslint-disable-next-line no-unused-vars -class Gallium9Verb { +module.default = class Gallium9Verb { constructor() { // do nothing } diff --git a/Engines/Wine/Verbs/gdiplus/script.js b/Engines/Wine/Verbs/gdiplus/script.js index 8505b525d5..4a1b2ce0fa 100644 --- a/Engines/Wine/Verbs/gdiplus/script.js +++ b/Engines/Wine/Verbs/gdiplus/script.js @@ -1,6 +1,7 @@ -include("engines.wine.engine.object"); -include("utils.functions.net.resource"); -include("utils.functions.filesystem.files"); +const Wine = include("engines.wine.engine.object"); +const Resource = include("utils.functions.net.resource"); +const {cp} = include("utils.functions.filesystem.files"); + include("engines.wine.plugins.override_dll"); /** @@ -32,7 +33,7 @@ Wine.prototype.gdiplus = function () { * Verb to install gdiplus */ // eslint-disable-next-line no-unused-vars -class GdiplusVerb { +module.default = class GdiplusVerb { constructor() { // do nothing } diff --git a/Engines/Wine/Verbs/luna/script.js b/Engines/Wine/Verbs/luna/script.js index 6ca3e1c12c..f521e58338 100644 --- a/Engines/Wine/Verbs/luna/script.js +++ b/Engines/Wine/Verbs/luna/script.js @@ -1,7 +1,8 @@ -include("engines.wine.engine.object"); +const Wine = include("engines.wine.engine.object"); +const Resource = include("utils.functions.net.resource"); +const {mkdir, cp} = include("utils.functions.filesystem.files"); + include("engines.wine.plugins.regedit"); -include("utils.functions.filesystem.files"); -include("utils.functions.net.resource"); /** * Verb to install luna @@ -26,6 +27,7 @@ Wine.prototype.luna = function () { mkdir(this.prefixDirectory() + "/drive_c/windows/Resources/Themes/luna/"); cp(lunaStyle, this.prefixDirectory() + "/drive_c/windows/Resources/Themes/luna/"); + this.regedit().open(lunaReg); return this; @@ -35,7 +37,7 @@ Wine.prototype.luna = function () { * Verb to install luna */ // eslint-disable-next-line no-unused-vars -class LunaVerb { +module.default = class LunaVerb { constructor() { // do nothing } diff --git a/Engines/Wine/Verbs/mfc42/script.js b/Engines/Wine/Verbs/mfc42/script.js index 3d0f170af3..920cde2776 100644 --- a/Engines/Wine/Verbs/mfc42/script.js +++ b/Engines/Wine/Verbs/mfc42/script.js @@ -1,6 +1,9 @@ -include("engines.wine.engine.object"); +const Wine = include("engines.wine.engine.object"); +const Resource = include("utils.functions.net.resource"); +const {CabExtract} = include("utils.functions.filesystem.extract"); +const {remove} = include("utils.functions.filesystem.files"); + include("engines.wine.plugins.override_dll"); -include("utils.functions.net.resource"); /** * Verb to install mfc42.dll and mfc42u.dll @@ -41,7 +44,7 @@ Wine.prototype.mfc42 = function () { * Verb to install mfc42.dll and mfc42u.dll */ // eslint-disable-next-line no-unused-vars -class Mfc42Verb { +module.default = class Mfc42Verb { constructor() { // do nothing } diff --git a/Engines/Wine/Verbs/msls31/script.js b/Engines/Wine/Verbs/msls31/script.js index 27b8a06227..b8ee2f7ec6 100644 --- a/Engines/Wine/Verbs/msls31/script.js +++ b/Engines/Wine/Verbs/msls31/script.js @@ -1,5 +1,7 @@ -include("engines.wine.engine.object"); -include("utils.functions.net.resource"); +const Wine = include("engines.wine.engine.object"); +const Resource = include("utils.functions.net.resource"); +const {CabExtract} = include("utils.functions.filesystem.extract"); +const {remove} = include("utils.functions.filesystem.files"); /** * Verb to install msls31.dll @@ -29,7 +31,7 @@ Wine.prototype.msls31 = function () { * Verb to install msls31.dll */ // eslint-disable-next-line no-unused-vars -class Msls31Verb { +module.default = class Msls31Verb { constructor() { // do nothing } diff --git a/Engines/Wine/Verbs/mspatcha/script.js b/Engines/Wine/Verbs/mspatcha/script.js index 6dd848a036..2f0b56389b 100644 --- a/Engines/Wine/Verbs/mspatcha/script.js +++ b/Engines/Wine/Verbs/mspatcha/script.js @@ -1,7 +1,9 @@ -include("engines.wine.engine.object"); +const Wine = include("engines.wine.engine.object"); +const Resource = include("utils.functions.net.resource"); +const {CabExtract} = include("utils.functions.filesystem.extract"); +const {remove} = include("utils.functions.filesystem.files"); + include("engines.wine.plugins.override_dll"); -include("utils.functions.net.resource"); -include("utils.functions.filesystem.files"); /** * Verb to install mspatcha @@ -44,7 +46,7 @@ Wine.prototype.mspatcha = function () { * Verb to install mspatcha */ // eslint-disable-next-line no-unused-vars -class MspatchaVerb { +module.default = class MspatchaVerb { constructor() { // do nothing } diff --git a/Engines/Wine/Verbs/msxml3/script.js b/Engines/Wine/Verbs/msxml3/script.js index a71179ae1e..03bc2c1d5e 100644 --- a/Engines/Wine/Verbs/msxml3/script.js +++ b/Engines/Wine/Verbs/msxml3/script.js @@ -1,8 +1,8 @@ -include("engines.wine.engine.object"); -include("engines.wine.plugins.override_dll"); -include("utils.functions.net.resource"); -include("utils.functions.filesystem.files"); +const Wine = include("engines.wine.engine.object"); +const Resource = include("utils.functions.net.resource"); +const {remove} = include("utils.functions.filesystem.files"); +include("engines.wine.plugins.override_dll"); /** * Verb to install msxml3 @@ -17,7 +17,8 @@ Wine.prototype.msxml3 = function () { .name("msxml3.msi") .get(); - remove(this.system32directory() + "/msxml3.dll") + remove(this.system32directory() + "/msxml3.dll"); + this.overrideDLL() .set("native", ["msxml3"]) .do(); @@ -32,7 +33,7 @@ Wine.prototype.msxml3 = function () { * Verb to install msxml3 */ // eslint-disable-next-line no-unused-vars -class Msxml3Verb { +module.default = class Msxml3Verb { constructor() { // do nothing } diff --git a/Engines/Wine/Verbs/msxml6/script.js b/Engines/Wine/Verbs/msxml6/script.js index bb2e781bff..c5610ff10c 100644 --- a/Engines/Wine/Verbs/msxml6/script.js +++ b/Engines/Wine/Verbs/msxml6/script.js @@ -1,7 +1,8 @@ -include("engines.wine.engine.object"); +const Wine = include("engines.wine.engine.object"); +const Resource = include("utils.functions.net.resource"); +const {remove} = include("utils.functions.filesystem.files"); + include("engines.wine.plugins.override_dll"); -include("utils.functions.net.resource"); -include("utils.functions.filesystem.files"); /** * Verb to install msxml6 @@ -25,7 +26,8 @@ Wine.prototype.msxml6 = function () { .get(); } - remove(this.system32directory() + "/msxml6.dll") + remove(this.system32directory() + "/msxml6.dll"); + this.overrideDLL() .set("native,builtin", ["msxml6"]) .do(); @@ -46,7 +48,7 @@ Wine.prototype.msxml6 = function () { * Verb to install msxml6 */ // eslint-disable-next-line no-unused-vars -class Msxml6Verb { +module.default = class Msxml6Verb { constructor() { // do nothing } diff --git a/Engines/Wine/Verbs/quartz/script.js b/Engines/Wine/Verbs/quartz/script.js index 977ab20e1f..bfee727169 100644 --- a/Engines/Wine/Verbs/quartz/script.js +++ b/Engines/Wine/Verbs/quartz/script.js @@ -1,8 +1,10 @@ -include("engines.wine.engine.object"); +const Wine = include("engines.wine.engine.object"); +const Resource = include("utils.functions.net.resource"); +const {CabExtract} = include("utils.functions.filesystem.extract"); +const {remove} = include("utils.functions.filesystem.files"); + include("engines.wine.plugins.override_dll"); include("engines.wine.plugins.regsvr32"); -include("utils.functions.net.resource"); -include("utils.functions.filesystem.files"); /** * Verb to install quartz @@ -44,7 +46,7 @@ Wine.prototype.quartz = function () { * Verb to install quartz */ // eslint-disable-next-line no-unused-vars -class QuartzVerb { +module.default = class QuartzVerb { constructor() { // do nothing } diff --git a/Engines/Wine/Verbs/sandbox/script.js b/Engines/Wine/Verbs/sandbox/script.js index 6dc4f6bd17..d5a5decae0 100644 --- a/Engines/Wine/Verbs/sandbox/script.js +++ b/Engines/Wine/Verbs/sandbox/script.js @@ -1,5 +1,5 @@ -include("engines.wine.engine.object"); -include("utils.functions.net.resource"); +const Wine = include("engines.wine.engine.object"); +const {remove, lns} = include("utils.functions.filesystem.files"); /** * Verb to install a sandbox @@ -23,7 +23,7 @@ Wine.prototype.sandbox = function () { * Verb to install a sandbox */ // eslint-disable-next-line no-unused-vars -class SandboxVerb { +module.default = class SandboxVerb { constructor() { // do nothing } diff --git a/Engines/Wine/Verbs/secur32/script.js b/Engines/Wine/Verbs/secur32/script.js index ec8a1d2ba7..6ec67d39ce 100644 --- a/Engines/Wine/Verbs/secur32/script.js +++ b/Engines/Wine/Verbs/secur32/script.js @@ -1,7 +1,9 @@ -include("engines.wine.engine.object"); +const Wine = include("engines.wine.engine.object"); +const Resource = include("utils.functions.net.resource"); +const {CabExtract} = include("utils.functions.filesystem.extract"); +const {cp, remove} = include("utils.functions.filesystem.files"); + include("engines.wine.plugins.override_dll"); -include("utils.functions.net.resource"); -include("utils.functions.filesystem.files"); /** * Verb to install secur32 @@ -56,7 +58,7 @@ Wine.prototype.secur32 = function () { * Verb to install secur32 */ // eslint-disable-next-line no-unused-vars -class Secur32Verb { +module.default = class Secur32Verb { constructor() { // do nothing } diff --git a/Engines/Wine/Verbs/vcrun2003/script.js b/Engines/Wine/Verbs/vcrun2003/script.js index a6431daf9b..d58c7f978d 100644 --- a/Engines/Wine/Verbs/vcrun2003/script.js +++ b/Engines/Wine/Verbs/vcrun2003/script.js @@ -1,6 +1,7 @@ -include("engines.wine.engine.object"); -include("utils.functions.net.resource"); -include("utils.functions.filesystem.files"); +const Wine = include("engines.wine.engine.object"); +const Resource = include("utils.functions.net.resource"); +const {cp} = include("utils.functions.filesystem.files"); + include("engines.wine.verbs.luna"); /** @@ -36,7 +37,7 @@ Wine.prototype.vcrun2003 = function () { * Verb to install vcrun2003 */ // eslint-disable-next-line no-unused-vars -class Vcrun2003Verb { +module.default = class Vcrun2003Verb { constructor() { // do nothing } diff --git a/Engines/Wine/Verbs/vcrun2005/script.js b/Engines/Wine/Verbs/vcrun2005/script.js index 95af886b83..12c8982243 100644 --- a/Engines/Wine/Verbs/vcrun2005/script.js +++ b/Engines/Wine/Verbs/vcrun2005/script.js @@ -1,7 +1,8 @@ -include("engines.wine.engine.object"); -include("engines.wine.plugins.override_dll"); -include("utils.functions.net.resource"); +const Wine = include("engines.wine.engine.object"); +const Resource = include("utils.functions.net.resource"); + include("engines.wine.verbs.luna"); +include("engines.wine.plugins.override_dll"); /** * Verb to install vcrun2005 @@ -36,7 +37,7 @@ Wine.prototype.vcrun2005 = function () { * Verb to install vcrun2005 */ // eslint-disable-next-line no-unused-vars -class Vcrun2005Verb { +module.default = class Vcrun2005Verb { constructor() { // do nothing } diff --git a/Engines/Wine/Verbs/vcrun2008/script.js b/Engines/Wine/Verbs/vcrun2008/script.js index f496c2b5d1..d51d96f26f 100644 --- a/Engines/Wine/Verbs/vcrun2008/script.js +++ b/Engines/Wine/Verbs/vcrun2008/script.js @@ -1,7 +1,8 @@ -include("engines.wine.engine.object"); -include("engines.wine.plugins.override_dll"); -include("utils.functions.net.resource"); +const Wine = include("engines.wine.engine.object"); +const Resource = include("utils.functions.net.resource"); + include("engines.wine.verbs.luna"); +include("engines.wine.plugins.override_dll"); /** * Verb to install vcrun2008 @@ -49,7 +50,7 @@ Wine.prototype.vcrun2008 = function () { * Verb to install vcrun2008 */ // eslint-disable-next-line no-unused-vars -class Vcrun2008Verb { +module.default = class Vcrun2008Verb { constructor() { // do nothing } diff --git a/Engines/Wine/Verbs/vcrun2010/script.js b/Engines/Wine/Verbs/vcrun2010/script.js index 25d0c24809..0f2bbe649d 100644 --- a/Engines/Wine/Verbs/vcrun2010/script.js +++ b/Engines/Wine/Verbs/vcrun2010/script.js @@ -1,7 +1,8 @@ -include("engines.wine.engine.object"); -include("engines.wine.plugins.override_dll"); -include("utils.functions.net.resource"); +const Wine = include("engines.wine.engine.object"); +const Resource = include("utils.functions.net.resource"); + include("engines.wine.verbs.luna"); +include("engines.wine.plugins.override_dll"); /** * Verb to install vcrun2010 @@ -48,7 +49,7 @@ Wine.prototype.vcrun2010 = function () { * Verb to install vcrun2010 */ // eslint-disable-next-line no-unused-vars -class Vcrun2010Verb { +module.default = class Vcrun2010Verb { constructor() { // do nothing } diff --git a/Engines/Wine/Verbs/vcrun2012/script.js b/Engines/Wine/Verbs/vcrun2012/script.js index 904d932588..8c5f990d09 100644 --- a/Engines/Wine/Verbs/vcrun2012/script.js +++ b/Engines/Wine/Verbs/vcrun2012/script.js @@ -1,7 +1,8 @@ -include("engines.wine.engine.object"); -include("engines.wine.plugins.override_dll"); -include("utils.functions.net.resource"); +const Wine = include("engines.wine.engine.object"); +const Resource = include("utils.functions.net.resource"); + include("engines.wine.verbs.luna"); +include("engines.wine.plugins.override_dll"); /** * Verb to install vcrun2012 @@ -48,7 +49,7 @@ Wine.prototype.vcrun2012 = function () { * Verb to install vcrun2012 */ // eslint-disable-next-line no-unused-vars -class Vcrun2012Verb { +module.default = class Vcrun2012Verb { constructor() { // do nothing } diff --git a/Engines/Wine/Verbs/vcrun2013/script.js b/Engines/Wine/Verbs/vcrun2013/script.js index b9997afd3f..7822e75c71 100644 --- a/Engines/Wine/Verbs/vcrun2013/script.js +++ b/Engines/Wine/Verbs/vcrun2013/script.js @@ -1,7 +1,8 @@ -include("engines.wine.engine.object"); -include("engines.wine.plugins.override_dll"); -include("utils.functions.net.resource"); +const Wine = include("engines.wine.engine.object"); +const Resource = include("utils.functions.net.resource"); + include("engines.wine.verbs.luna"); +include("engines.wine.plugins.override_dll"); /** * Verb to install vcrun2013 @@ -42,7 +43,7 @@ Wine.prototype.vcrun2013 = function () { * Verb to install vcrun2013 */ // eslint-disable-next-line no-unused-vars -class Vcrun2013Verb { +module.default = class Vcrun2013Verb { constructor() { // do nothing } diff --git a/Engines/Wine/Verbs/vcrun2015/script.js b/Engines/Wine/Verbs/vcrun2015/script.js index fbc8dbc521..3af7edef3a 100644 --- a/Engines/Wine/Verbs/vcrun2015/script.js +++ b/Engines/Wine/Verbs/vcrun2015/script.js @@ -1,7 +1,8 @@ -include("engines.wine.engine.object"); -include("engines.wine.plugins.override_dll"); -include("utils.functions.net.resource"); +const Wine = include("engines.wine.engine.object"); +const Resource = include("utils.functions.net.resource"); + include("engines.wine.verbs.luna"); +include("engines.wine.plugins.override_dll"); /** * Verb to install vcrun2015 @@ -58,7 +59,7 @@ Wine.prototype.vcrun2015 = function () { * Verb to install vcrun2015 */ // eslint-disable-next-line no-unused-vars -class Vcrun2015Verb { +module.default = class Vcrun2015Verb { constructor() { // do nothing } diff --git a/Engines/Wine/Verbs/vcrun2017/script.js b/Engines/Wine/Verbs/vcrun2017/script.js index da7f43f42b..924cc63395 100644 --- a/Engines/Wine/Verbs/vcrun2017/script.js +++ b/Engines/Wine/Verbs/vcrun2017/script.js @@ -1,7 +1,8 @@ -include("engines.wine.engine.object"); -include("engines.wine.plugins.override_dll"); -include("utils.functions.net.resource"); +const Wine = include("engines.wine.engine.object"); +const Resource = include("utils.functions.net.resource"); + include("engines.wine.verbs.luna"); +include("engines.wine.plugins.override_dll"); /** * Verb to install vcrun2017 @@ -58,7 +59,7 @@ Wine.prototype.vcrun2017 = function () { * Verb to install vcrun2017 */ // eslint-disable-next-line no-unused-vars -class Vcrun2017Verb { +module.default = class Vcrun2017Verb { constructor() { // do nothing } diff --git a/Engines/Wine/Verbs/vcrun6sp6/script.js b/Engines/Wine/Verbs/vcrun6sp6/script.js index ccbfcb067a..8fa265598d 100644 --- a/Engines/Wine/Verbs/vcrun6sp6/script.js +++ b/Engines/Wine/Verbs/vcrun6sp6/script.js @@ -1,5 +1,8 @@ -include("engines.wine.engine.object"); -include("utils.functions.net.resource"); +const Wine = include("engines.wine.engine.object"); +const Resource = include("utils.functions.net.resource"); +const {CabExtract} = include("utils.functions.filesystem.extract"); +const {remove} = include("utils.functions.filesystem.files"); + include("engines.wine.verbs.luna"); /** @@ -36,7 +39,7 @@ Wine.prototype.vcrun6sp6 = function () { * Verb to install vcrun6sp6 */ // eslint-disable-next-line no-unused-vars -class Vcrun6SP6Verb { +module.default = class Vcrun6SP6Verb { constructor() { // do nothing } diff --git a/Engines/Wine/Verbs/vulkanSDK/script.js b/Engines/Wine/Verbs/vulkanSDK/script.js index fa18dcaef9..e0bb3fcde9 100644 --- a/Engines/Wine/Verbs/vulkanSDK/script.js +++ b/Engines/Wine/Verbs/vulkanSDK/script.js @@ -1,8 +1,9 @@ -include("engines.wine.engine.object"); +const Wine = include("engines.wine.engine.object"); +const Resource = include("utils.functions.net.resource"); +const {touch, writeToFile} = include("utils.functions.filesystem.files"); + include("engines.wine.plugins.regedit"); -include("utils.functions.net.resource"); -include("utils.functions.filesystem.files"); /** * All the necessary things to run winevulkan (even inside wine mainline or newest wine-staging) @@ -62,7 +63,7 @@ Wine.prototype.vulkanSDK = function () { * Verb to install all the necessary things to run winevulkan (even inside wine mainline or newest wine-staging) */ // eslint-disable-next-line no-unused-vars -class VulkanSDKVerb { +module.default = class VulkanSDKVerb { constructor() { // do nothing } diff --git a/Engines/Wine/Verbs/xact/script.js b/Engines/Wine/Verbs/xact/script.js index 4f559d8dea..cf69047615 100644 --- a/Engines/Wine/Verbs/xact/script.js +++ b/Engines/Wine/Verbs/xact/script.js @@ -1,7 +1,9 @@ -include("engines.wine.engine.object"); +const Wine = include("engines.wine.engine.object"); +const Resource = include("utils.functions.net.resource"); +const {CabExtract} = include("utils.functions.filesystem.extract"); +const {remove} = include("utils.functions.filesystem.files"); + include("engines.wine.plugins.regsvr32"); -include("utils.functions.net.resource"); -include("utils.functions.filesystem.files"); /** * Verb to install xact @@ -177,7 +179,7 @@ Wine.prototype.xact = function () { * Verb to install xact */ // eslint-disable-next-line no-unused-vars -class XactVerb { +module.default = class XactVerb { constructor() { // do nothing } diff --git a/Utils/Functions/Apps/PlainInstaller/script.js b/Utils/Functions/Apps/PlainInstaller/script.js index d1a83a061b..ecfffefe53 100644 --- a/Utils/Functions/Apps/PlainInstaller/script.js +++ b/Utils/Functions/Apps/PlainInstaller/script.js @@ -2,7 +2,7 @@ * A "plain" script installer that is fully configurable. */ // eslint-disable-next-line no-unused-vars -class PlainInstaller { +module.default = class PlainInstaller { constructor() { // do nothing } diff --git a/Utils/Functions/Apps/Resources/script.js b/Utils/Functions/Apps/Resources/script.js index 364e94eee4..bc8f487a7d 100644 --- a/Utils/Functions/Apps/Resources/script.js +++ b/Utils/Functions/Apps/Resources/script.js @@ -2,7 +2,7 @@ * AppResource class */ // eslint-disable-next-line no-unused-vars -class AppResource { +module.default = class AppResource { constructor() { this.appsManager = Bean("repositoryManager"); } diff --git a/Utils/Functions/Filesystem/Extract/script.js b/Utils/Functions/Filesystem/Extract/script.js index 4fe1018c64..089d3234aa 100644 --- a/Utils/Functions/Filesystem/Extract/script.js +++ b/Utils/Functions/Filesystem/Extract/script.js @@ -1,4 +1,4 @@ -include("utils.functions.filesystem.files"); +const {mkdir} = include("utils.functions.filesystem.files"); const ProcessBuilderClass = Java.type("java.lang.ProcessBuilder"); const FileClass = Java.type("java.io.File"); @@ -7,7 +7,7 @@ const FileClass = Java.type("java.io.File"); * CabExtract class */ // eslint-disable-next-line no-unused-vars -class CabExtract { +module.CabExtract = class CabExtract { constructor() { // do nothing } @@ -96,7 +96,7 @@ class CabExtract { * Extractor class */ // eslint-disable-next-line no-unused-vars -class Extractor { +module.Extractor = class Extractor { constructor() { this.extractor = Bean("extractor"); } diff --git a/Utils/Functions/Filesystem/Files/script.js b/Utils/Functions/Filesystem/Files/script.js index cd836055c8..61e35eb219 100644 --- a/Utils/Functions/Filesystem/Files/script.js +++ b/Utils/Functions/Filesystem/Files/script.js @@ -1,4 +1,3 @@ -var fileAnalyser = Bean("fileAnalyser"); var fileUtilities = Bean("fileUtilities"); /** @@ -164,7 +163,7 @@ function chmod(filePath, permissions) { * Checksum */ // eslint-disable-next-line no-unused-vars -class Checksum { +module.Checksum = class Checksum { constructor() { this.checksumCalculator = Bean("checksumCalculator"); this._method = "SHA"; @@ -222,4 +221,19 @@ class Checksum { } }); } -} +}; + +module.ls = ls; +module.mkdir = mkdir; +module.fileExists = fileExists; +module.cat = cat; +module.cp = cp; +module.getFileSize = getFileSize; +module.fileName = fileName; +module.lns = lns; +module.remove = remove; +module.touch = touch; +module.writeToFile = writeToFile; +module.createTempFile = createTempFile; +module.createTempDir = createTempDir; +module.chmod = chmod; diff --git a/Utils/Functions/Net/Download/script.js b/Utils/Functions/Net/Download/script.js index 6a3b21e429..17184557b3 100644 --- a/Utils/Functions/Net/Download/script.js +++ b/Utils/Functions/Net/Download/script.js @@ -1,10 +1,10 @@ -include("utils.functions.filesystem.files"); +const {Checksum} = include("utils.functions.filesystem.files"); /** * Downloader class */ // eslint-disable-next-line no-unused-vars -class Downloader { +module.default = class Downloader { constructor() { this._downloader = Bean("downloader"); this._algorithm = "SHA"; diff --git a/Utils/Functions/Net/Resource/script.js b/Utils/Functions/Net/Resource/script.js index 803ae2ae6c..835377e8ff 100644 --- a/Utils/Functions/Net/Resource/script.js +++ b/Utils/Functions/Net/Resource/script.js @@ -1,11 +1,11 @@ -include("utils.functions.net.download"); -include("utils.functions.filesystem.files"); +const Downloader = include("utils.functions.net.download"); +const {mkdir, fileExists, Checksum} = include("utils.functions.filesystem.files"); /** * Resource class */ // eslint-disable-next-line no-unused-vars -class Resource { +module.default = class Resource { constructor() { this._resourcesPath = Bean("propertyReader").getProperty("application.user.resources"); this._algorithm = "SHA"; diff --git a/docs/_docs/Develop/script-js.md b/docs/_docs/Develop/script-js.md index b698bfee3f..b19be1ddfd 100644 --- a/docs/_docs/Develop/script-js.md +++ b/docs/_docs/Develop/script-js.md @@ -28,7 +28,7 @@ If you wish to change the trust level (if the application compalains about admin A basic script looks like: ```javascript -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); new SteamScript() .name("A Game") // name of the game @@ -65,7 +65,7 @@ For a different shortcut (e.g. if you want to pass arguments): A basic script looks like: ```javascript -include("engines.wine.quick_script.origin_script"); +const OriginScript = include("engines.wine.quick_script.origin_script"); new OriginScript() .name("A Game") // name of the game @@ -86,7 +86,7 @@ You can determine the app ID by going into `C:\Origin Games\*name of the game*\ A basic script looks like: ```javascript -include("engines.wine.quick_script.uplay_script"); +const UplayScript = include("engines.wine.quick_script.uplay_script"); new UplayScript() .name("A Game") // name of the game @@ -104,7 +104,7 @@ Installs a local Windows executable. Shows a setup window browse step (see [Setu A basic script looks like: ```javascript -include("engines.wine.quick_script.local_installer_script"); +const LocalInstallerScript = include("engines.wine.quick_script.local_installer_script"); new LocalInstallerScript() .name("Application-Name") // name of the application @@ -121,7 +121,7 @@ Downloads and installs a Windows executable. A basic script looks like: ```javascript -include("engines.wine.quick_script.online_installer_script"); +const OnlineInstallerScript = include("engines.wine.quick_script.online_installer_script"); new OnlineInstallerScript() .name("Application-Name") // name of the application @@ -138,7 +138,7 @@ new OnlineInstallerScript() Executes a custom installation command: ```javascript -include("engines.wine.quick_script.custom_installer_script"); +const CustomInstallerScript = include("engines.wine.quick_script.custom_installer_script"); new CustomInstallerScript() .name("Application-Name") // name of the application @@ -156,7 +156,7 @@ new CustomInstallerScript() A basic script looks like: ```javascript -include("engines.wine.quick_script.zip_script"); +const ZipScript = include("engines.wine.quick_script.zip_script"); new ZipScript() .name("Application-Name") // name of the application @@ -176,7 +176,7 @@ This section describes some advanced methods which give you more possibilities t When you want to use a certain functionality in your scripts, you need to include it in your scripts, for example: ```javascript -include("engines.wine.quick_script.steam_script"); +const SteamScript = include("engines.wine.quick_script.steam_script"); ``` allows you to execute a steam script. The content of the include is the id of the functionality, which can be found in the `script.json` file located next to the `script.js` file implementing the functionality. @@ -251,7 +251,7 @@ If the script requires a special registry setting, there are 2 options: 2. If the setting is special for this script, use a registry file. Create a `registry.reg` in `/resources` (see [IE6](https://github.com/PhoenicisOrg/scripts/blob/master/Applications/Internet/Internet%20Explorer%206.0/resources/ie6.reg)) and apply this in `pre/postInstall()` via: ```javascript - include("utils.functions.apps.resources"); + const AppResource = include("utils.functions.apps.resources"); include("engines.wine.plugins.regedit"); ... var registrySettings = new AppResource().application([TYPE_ID, CATEGORY_ID, APPLICATION_ID]).get("registry.reg"); @@ -264,8 +264,8 @@ If the QuickScript is not sufficient for you, you can still write a custom scrip The frame for a custom script looks like this: ```javascript -include("engines.wine.engines.wine"); -include("engines.wine.shortcuts.wine"); +const Wine = include("engines.wine.engine.object"); +const WineShortcut = include("engines.wine.shortcuts.wine"); var application = "application name" diff --git a/docs/_docs/Develop/verbs.md b/docs/_docs/Develop/verbs.md index 768b395295..44ead83471 100644 --- a/docs/_docs/Develop/verbs.md +++ b/docs/_docs/Develop/verbs.md @@ -15,7 +15,7 @@ Probably, the verb you want to add has already been implemented somewhere else. Create a new folder in `Engines/Wine/Verbs` and add a `script.js`. The `script.js` must follow this template: ```javascript -include(["engines", "wine", "engine", "object"]); +const Wine = include("engines.wine.engine.object"); /** * Verb to install verb @@ -30,7 +30,7 @@ Wine.prototype.verb = function() { /** * Verb to install verb */ -class VerbVerb { +module.default = class VerbVerb { constructor() { // do some optional initialisation work }