forked from Ash258/Shovel-Ash258
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJDownloader.yml
48 lines (48 loc) · 2.45 KB
/
JDownloader.yml
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
version: nightly
description: JDownloader. Download manager with custom configuration and Dark Theme by Vinylwalk3r enabled.
homepage: http://jdownloader.org
license: Shareware|AGPL-3.0-only
suggest:
Java Runtime Enviroment: java/oraclejdk
url:
- http://installer.jdownloader.org/JDownloader.jar
- http://jdownloader.org/lib/tpl/arctic/images/favicon.ico#/icon.ico
- https://raw.githubusercontent.com/Vinylwalk3r/JDownloader-2-Dark-Theme/master/syntheticaBlackEye.jar
- https://raw.githubusercontent.com/Vinylwalk3r/JDownloader-2-Dark-Theme/master/config/cfg/laf/JDDefaultLookAndFeel.json
- https://raw.githubusercontent.com/Vinylwalk3r/JDownloader-2-Dark-Theme/master/config/cfg/laf/JDDefaultLookAndFeel.popupborderinsets.json
- https://raw.githubusercontent.com/Vinylwalk3r/JDownloader-2-Dark-Theme/master/config/cfg/laf/SyntheticaBlackEyeLookAndFeel.json
- https://gist.githubusercontent.com/Ash258/daeb1148f9293233996d0e9d43bb8148/raw/DownloadTableContext.menu.json
- https://gist.githubusercontent.com/Ash258/daeb1148f9293233996d0e9d43bb8148/raw/LinkgrabberContext.menu.json
- https://gist.githubusercontent.com/Ash258/daeb1148f9293233996d0e9d43bb8148/raw/MainToolbar.menu.json
pre_install: |
Out-UTF8File "$dir\JDownloader.bat" '@start javaw.exe -jar "%~dp0JDownloader.jar" %*'
'cfg', 'cfg\menus_v2', 'cfg\laf', 'libs\laf' | ForEach-Object {
New-Item "$dir\$_" -ItemType Directory -Force | Out-Null
}
Move-Item "$dir\syntheticaBlackEye.jar" "$dir\libs\laf" -Force
Copy-Item "$dir\*.menu.json" "$dir\cfg\menus_v2"
Get-ChildItem $dir '*.menu.json' | ForEach-Object { Rename-Item $_.Fullname "$($_.Name).backup" }
Move-Item "$dir\*.json" "$dir\cfg\laf"
$cfgs = @{
'org.jdownloader.controlling.packagizer.PackagizerSettings.json' = @{ 'packagizerenabled' = $true }
'org.jdownloader.settings.GraphicalUserInterfaceSettings.json' = @{
'packagedoubleclickaction' = 'OPEN_FOLDER'
'captchascalefactor' = 200
'lookandfeeltheme' = 'BLACK_EYE'
'linkgrabbersidebarvisible' = $false
}
'org.jdownloader.settings.GeneralSettings.json' = @{
'maxsimultanedownloadsperhost' = 3
'maxsimultanedownloads' = 9
'maxchunksperfile' = 4
}
}
#### Generate config files
foreach ($cf in $cfgs.Keys) { Out-UTF8File "$dir\cfg\$cf" (ConvertTo-Json $cfgs[$cf]) }
bin: JDownloader.bat
shortcuts:
- - JDownloader.bat
- JDdownloader 2
- ''
- icon.ico
persist: cfg