forked from PhoenicisOrg/scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscript.js
51 lines (50 loc) · 2.19 KB
/
script.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
include("engines.wine.quick_script.local_installer_script");
include("utils.functions.net.download");
include("utils.functions.filesystem.extract");
const {ls, mkdir, fileExists, cat, cp, getFileSize, fileName, lns, remove, touch, writeToFile, createTempFile, createTempDir, chmod, Checksum} = include("utils.functions.filesystem.files");
include("engines.wine.verbs.amstream");
include("engines.wine.verbs.quartz");
include("engines.wine.verbs.devenum");
include("engines.wine.verbs.d3drm");
new LocalInstallerScript()
.name("Lego Rock Raiders")
.editor("LEGO Media")
.author("Zemogiter")
.category("Games")
.executable("LegoRR.exe")
.wineVersion("3.0.3")
.wineDistribution("upstream")
.preInstall(function (wine, wizard) {
wine.amstream();
wine.quartz();
wine.devenum();
wine.d3drm();
wizard.message(tr("When the game ask to install DirectX Media click yes. Click no when it ask for DirectX 6."));
})
.postInstall(function (wine, wizard) {
wizard.message(
tr(
"This game needs a copy protection patch to work. It may be illegal in your country to patch copy protection. You must patch the game yourself."
)
);
var zipLocation = wine.prefixDirectory() + "drive_c/RockRaidersCodec_490085.zip";
new Downloader()
.wizard(wizard)
.url("http://rrubucket.s3.amazonaws.com/RockRaidersCodec_490085.zip")
.checksum("991a343dc608c6a1914127a55f2e5b47")
.algorithm("MD5")
.to(zipLocation)
.get();
new Extractor()
.wizard(wizard)
.archive(wine.prefixDirectory() + "/drive_c/RockRaidersCodec_490085.zip")
.to(wine.prefixDirectory() + "/drive_c/RockRaidersCodec/")
.extract(["-F", "iv5setup.exe"]);
wizard.message(
tr(
"When installing Indeo codecs you must choose custom installation type. Then uncheck ownload DirectShow filter and Indeo 5 Netscape Browser Extension or else the installer will crash."
)
);
wine.run(wine.prefixDirectory() + "/drive_c/RockRaidersCodec/iv5setup.exe");
wine.wait();
});