Update manifest to use new Expand-Functions

This commit is contained in:
Richard Kuhnt 2019-05-12 11:59:57 +02:00
parent a4f8793aaf
commit 1e6e9fd8e4
4 changed files with 7 additions and 11 deletions

View File

@ -13,7 +13,6 @@
"env_set": { "env_set": {
"LUA_DEV": "$dir" "LUA_DEV": "$dir"
}, },
"depends": "innounp",
"checkver": { "checkver": {
"url": "https://github.com/rjpcomputing/luaforwindows/releases/latest", "url": "https://github.com/rjpcomputing/luaforwindows/releases/latest",
"re": "/releases/tag/v([\\d.\\-]+)" "re": "/releases/tag/v([\\d.\\-]+)"

View File

@ -3,7 +3,6 @@
"description": "Microsoft R Open: The enhanced distribution of R from Microsoft Corporation", "description": "Microsoft R Open: The enhanced distribution of R from Microsoft Corporation",
"homepage": "https://mran.microsoft.com/", "homepage": "https://mran.microsoft.com/",
"license": "GPL-2.0-only", "license": "GPL-2.0-only",
"depends": "dark",
"suggest": { "suggest": {
"Visual C/C++ Runtime 2015": "extras/vcredist2015" "Visual C/C++ Runtime 2015": "extras/vcredist2015"
}, },
@ -13,10 +12,10 @@
"hash": "296ff6358d3d9db6723cc7643778b1bf0cf6a3a7492438db4d3a31037391db56", "hash": "296ff6358d3d9db6723cc7643778b1bf0cf6a3a7492438db4d3a31037391db56",
"installer": { "installer": {
"script": [ "script": [
"&(file_path dark dark.exe) -nologo -x \"$dir\\_tmp\" \"$dir\\$fname\" | Out-Null", "Expand-DarkArchive \"$dir\\_tmp\" \"$dir\\$fname\" | Out-Null",
"Expand-MSIArchive \"$dir\\_tmp\\AttachedContainer\\ROpen.msi\" \"$dir\\_tmp\" | Out-Null", "Expand-MsiArchive \"$dir\\_tmp\\AttachedContainer\\ROpen.msi\" \"$dir\\_tmp\" | Out-Null",
"movedir \"$dir\\_tmp\\Microsoft\\MRO-$version.0\" \"$dir\" | Out-Null", "movedir \"$dir\\_tmp\\Microsoft\\MRO-$version.0\" \"$dir\" | Out-Null",
"Expand-7ZipArchive \"$dir\\Setup\\*.cab\" \"$dir\\Setup\"", "Expand-7zipArchive \"$dir\\Setup\\*.cab\" \"$dir\\Setup\"",
"Remove-Item \"$dir\\bin\\x64\\Rblas.dll\", \"$dir\\bin\\x64\\Rlapack.dll\" -Force", "Remove-Item \"$dir\\bin\\x64\\Rblas.dll\", \"$dir\\bin\\x64\\Rlapack.dll\" -Force",
"movedir \"$dir\\Setup\\bin\\x64\" \"$dir\\bin\\x64\" | Out-Null", "movedir \"$dir\\Setup\\bin\\x64\" \"$dir\\bin\\x64\" | Out-Null",
"movedir \"$dir\\Setup\\library\" \"$dir\\library\" | Out-Null", "movedir \"$dir\\Setup\\library\" \"$dir\\library\" | Out-Null",

View File

@ -7,15 +7,14 @@
"identifier": "Proprietary", "identifier": "Proprietary",
"url": "https://support.plex.tv/articles/204096476-license-information/" "url": "https://support.plex.tv/articles/204096476-license-information/"
}, },
"depends": "dark",
"url": "https://downloads.plex.tv/plex-media-server-new/1.15.4.994-107756f7e/windows/PlexMediaServer-1.15.4.994-107756f7e-x86.exe#/installer.exe", "url": "https://downloads.plex.tv/plex-media-server-new/1.15.4.994-107756f7e/windows/PlexMediaServer-1.15.4.994-107756f7e-x86.exe#/installer.exe",
"hash": "sha1:caeb12ae1080db20c11a86dba3b3e9b2e7bffc6d", "hash": "sha1:caeb12ae1080db20c11a86dba3b3e9b2e7bffc6d",
"installer": { "installer": {
"script": [ "script": [
"$extracted = \"$dir\\extracted\"", "$extracted = \"$dir\\extracted\"",
"$msi = \"$dir\\msi\"", "$msi = \"$dir\\msi\"",
"&(file_path dark dark.exe) -nologo -x \"$extracted\" \"$dir\\installer.exe\" | Out-Null", "Expand-DarkArchive \"$extracted\" \"$dir\\installer.exe\" | Out-Null",
"extract_msi \"$extracted\\AttachedContainer\\pms.msi\" \"$msi\"", "Expand-MsiArchive \"$extracted\\AttachedContainer\\pms.msi\" \"$msi\"",
"Move-Item \"$msi\\Msi\\*\" \"$dir\" -Force", "Move-Item \"$msi\\Msi\\*\" \"$dir\" -Force",
"Remove-Item $extracted, $msi, \"$dir\\installer.exe\" -Force -Recurse" "Remove-Item $extracted, $msi, \"$dir\\installer.exe\" -Force -Recurse"
] ]

View File

@ -3,7 +3,6 @@
"description": "A programming language that lets you work quickly and integrate systems more effectively.", "description": "A programming language that lets you work quickly and integrate systems more effectively.",
"license": "Python-2.0", "license": "Python-2.0",
"version": "3.7.3", "version": "3.7.3",
"depends": "dark",
"architecture": { "architecture": {
"64bit": { "64bit": {
"url": "https://www.python.org/ftp/python/3.7.3/python-3.7.3-amd64.exe", "url": "https://www.python.org/ftp/python/3.7.3/python-3.7.3-amd64.exe",
@ -16,11 +15,11 @@
}, },
"installer": { "installer": {
"script": [ "script": [
"&(file_path dark dark.exe) -nologo -x \"$dir\\_tmp\" \"$dir\\$fname\" | Out-Null", "Expand-DarkArchive \"$dir\\_tmp\" \"$dir\\$fname\" | Out-Null",
"@('launcher.msi', 'path.msi', 'pip.msi') | ForEach-Object {", "@('launcher.msi', 'path.msi', 'pip.msi') | ForEach-Object {",
" Remove-Item \"$dir\\_tmp\\AttachedContainer\\$_\"", " Remove-Item \"$dir\\_tmp\\AttachedContainer\\$_\"",
"}", "}",
"(Get-ChildItem \"$dir\\_tmp\\AttachedContainer\\*.msi\").FullName | ForEach-Object { Expand-MSIArchive $_ \"$dir\" }", "(Get-ChildItem \"$dir\\_tmp\\AttachedContainer\\*.msi\").FullName | ForEach-Object { Expand-MsiArchive $_ \"$dir\" }",
"Remove-Item \"$dir\\_tmp\", \"$dir\\$fname\" -Force -Recurse", "Remove-Item \"$dir\\_tmp\", \"$dir\\$fname\" -Force -Recurse",
"& \"$dir\\python.exe\" -E -s -m ensurepip -U --default-pip | Out-Null", "& \"$dir\\python.exe\" -E -s -m ensurepip -U --default-pip | Out-Null",
"if ($global) {", "if ($global) {",