Skip to content

Commit 0dc0978

Browse files
author
Jacob Hrbek
committed
init of Graphics/Photoshop
1 parent aa91ee4 commit 0dc0978

File tree

3 files changed

+82
-0
lines changed

3 files changed

+82
-0
lines changed
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
include("engines.wine.quick_script.online_installer_script");
2+
include("engines.wine.verbs.corefonts");
3+
include("engines.wine.verbs.gdiplus");
4+
include("engines.wine.verbs.vcrun2015");
5+
//include("engines.wine.verbs.msxml3"); - Not available
6+
//include("engines.wine.verbs.msxml6"); - Not available
7+
include("engines.wine.verbs.amtlib");
8+
//include("engines.wine.verbs.FontsSmoothRGB"); - Not available
9+
include("engines.wine.verbs.adobeair");
10+
//include("engines.wine.verbs.amtlib"); - Not available
11+
include("utils.functions.net.download");
12+
include("utils.functions.filesystem.extract");
13+
include("utils.functions.filesystem.files");
14+
15+
// Based on https://appdb.winehq.org/objectManager.php?sClass=version&iId=37541
16+
// Abadoned due missing functions
17+
18+
var installerImplementation = {
19+
run: function () {
20+
new OnlineInstallerScript()
21+
.name("Photoshop")
22+
.editor("Adobe Inc.")
23+
.applicationHomepage("https://www.adobe.com/")
24+
.author("Jacob Hrbek")
25+
.category("Graphics")
26+
.wineVersion("LATEST_STAGING_VERSION")
27+
.wineDistribution("staging")
28+
29+
.preInstall(function (wine, wizard){
30+
wine.corefonts();
31+
wine.gdiplus();
32+
wine.vcrun2015();
33+
wine.amtlib();
34+
//FIXME: wine.msxml3();
35+
//FIXME: wine.msxml6();
36+
//FIXME: wine.amtlib();
37+
wine.adobeair();
38+
39+
var zipLocation = wine.prefixDirectory() + "drive_c/AdobePhotoshop20-mul_x64.zip";
40+
new Downloader()
41+
.wizard(wizard)
42+
.url("http://prdl-download.adobe.com/Photoshop/55E8FC8663C847F08BFBCD8DFE336AE8/1546595903133/AdobePhotoshop20-mul_x64.zip")
43+
// .checksum("null") - Not available https://www.virustotal.com/#/url/f127c94f2f2420dc43d127d4ed7f42d45141c71badfe82ed4d2305807b0fc38e/detection
44+
//.algorithm("MD5")
45+
.to(zipLocation)
46+
.get();
47+
})
48+
49+
.postInstall(function (wine, wizard){
50+
new Extractor()
51+
.wizard(wizard)
52+
.archive(wine.prefixDirectory() + "drive_c/AdobePhotoshop20-mul_x64.zip")
53+
.to(wine.prefixDirectory() + "/drive_c/photoshopcc2019/")
54+
.extract(["-F", "Set-up.exe"]);
55+
wine.run(wine.prefixDirectory() + "/drive_c/photoshopcc2019/Set-up.exe");
56+
wine.wait();
57+
})
58+
.go();
59+
}
60+
};
61+
62+
/* exported Installer */
63+
var Installer = Java.extend(org.phoenicis.scripts.Installer, installerImplementation);
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"scriptName" : "Online",
3+
"id" : "applications.graphics.photoshop.online",
4+
"compatibleOperatingSystems" : [
5+
"MACOSX",
6+
"LINUX"
7+
],
8+
"testingOperatingSystems" : [
9+
"MACOSX",
10+
"LINUX"
11+
],
12+
"free" : false,
13+
"requiresPatch" : false
14+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"name" : "Photoshop",
3+
"id" : "applications.graphics.photoshop",
4+
"description" : "Adobe Photoshop is a raster graphics editor developed and published by Adobe Systems for macOS and Windows"
5+
}

0 commit comments

Comments
 (0)