forked from PhoenicisOrg/scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscript.js
21 lines (19 loc) · 1.04 KB
/
script.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
include("engines.wine.quick_script.local_installer_script");
const Wine = include("engines.wine.engine.object");
const {ls, mkdir, fileExists, cat, cp, getFileSize, fileName, lns, remove, touch, writeToFile, createTempFile, createTempDir, chmod, Checksum} = include("utils.functions.filesystem.files");
new LocalInstallerScript()
.name("STAR WARS™ Battlefront™ II")
.editor("Pandemic Studio")
.author("ImperatorS79")
.category("Games")
.executable("LaunchBFII.exe")
.postInstall(function (wine, wizard) {
// Install the 1.1 update of the game
new Downloader()
.wizard(wizard)
.url("http://static.dolimg.com/mh_netstorage/lucasfilm/patches/pc/BFIIUpdateInt1_1.exe")
.checksum("60eaddfaba1bc71fe8bbbb560f8da229748cfaa8")
.to(wine.prefixDirectory() + "drive_c/Program Files/LucasArts/Star Wars Battlefront II/BFIIUpdateInt1_1.exe")
.get();
wine.runInsidePrefix("/Program Files/LucasArts/Star Wars Battlefront II/BFIIUpdateInt1_1.exe", [], true);
});