-
Notifications
You must be signed in to change notification settings - Fork 45
Expand file tree
/
Copy pathscript.js
More file actions
25 lines (23 loc) · 1023 Bytes
/
script.js
File metadata and controls
25 lines (23 loc) · 1023 Bytes
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
include(["engines", "wine", "quick_script", "steam_script"]);
include(["utils", "functions", "filesystem", "files"]);
var installerImplementation = {
run: function () {
new SteamScript()
.name("Age of Empires II HD")
.editor("Skybox Labs, Hidden Path Entertainment, Ensemble Studios")
.author("Plata")
.appId(221380)
.postInstall(function (wine/*, wizard*/) {
// skip broken launcher by replacing it with "AoK HD.exe"
var installPath = wine.prefixDirectory + "drive_c/" + wine.programFiles() + "/Steam/steamapps/common/Age2HD/";
var launcher = installPath + "Launcher.exe";
cp(launcher, launcher + ".bak");
remove(launcher);
var aoe = installPath + "AoK HD.exe";
lns(aoe, launcher);
})
.go();
}
};
/* exported Installer */
var Installer = Java.extend(org.phoenicis.scripts.Installer, installerImplementation);