-
Notifications
You must be signed in to change notification settings - Fork 44
Expand file tree
/
Copy pathscript.js
More file actions
60 lines (50 loc) · 1.78 KB
/
Copy pathscript.js
File metadata and controls
60 lines (50 loc) · 1.78 KB
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
52
53
54
55
56
57
58
59
60
const PlainInstaller = include("utils.functions.apps.plain_installer");
const Downloader = include("utils.functions.net.download");
const { createTempFile, cp, mkdir } = include("utils.functions.filesystem.files");
const Wine = include("engines.wine.engine.object");
const { getLatestStableVersion } = include("engines.wine.engine.versions");
const WineShortcut = include("engines.wine.shortcuts.wine");
new PlainInstaller().withScript(() => {
const appsManager = Bean("repositoryManager");
const application = appsManager.getApplication([
TYPE_ID,
CATEGORY_ID,
APPLICATION_ID,
]);
const setupWizard = SetupWizard(
InstallationType.APPS,
"SafeNet MobilePASS",
application.getMainMiniature()
);
setupWizard.presentation(
"SafeNet MobilePASS",
"SafeNet",
"https://safenetmp.com/",
"Kolja Lampe"
);
const tempFile = createTempFile("exe");
new Downloader()
.wizard(setupWizard)
.url("https://raw.githubusercontent.com/ahmedmoselhi/wine_applications/refs/heads/main/SafeNet%20MobilePASS_8_4_6.msi")
.checksum("9d5a5ac56e1393ea5ce567b9c0e19dae2ef945d3")
.to(tempFile)
.get();
const wine = new Wine()
.wizard(setupWizard)
.prefix(
"MobilePass",
"upstream",
"x86",
getLatestStableVersion(setupWizard, "x86")
)
.create();
mkdir(wine.prefixDirectory() + "MobilePass");
cp(tempFile, wine.prefixDirectory() + "/drive_c/MobilePass/MobilePASS.exe");
new WineShortcut()
.name("SafeNet MobilePASS")
.prefix("MobilePass")
.search("MobilePASS.exe")
.miniature([TYPE_ID, CATEGORY_ID, APPLICATION_ID])
.create();
setupWizard.close();
});