|
| 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); |
0 commit comments