Skip to content

Commit

Permalink
multi: Add unpacker examples
Browse files Browse the repository at this point in the history
  • Loading branch information
niheaven committed Jul 14, 2019
1 parent 4862243 commit 1594e58
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 46 deletions.
6 changes: 1 addition & 5 deletions bucket/freedownloadmanager.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,8 @@
"hash": "69cca0d59a37fefe70fe0f8308cb063215bc2687b2305c996cb216141e516f16"
}
},
"depends": "innounp",
"installer": {
"script": [
"Expand-InnoArchive -Path \"$dir\\$fname\"",
"Expand-InnoArchive -Path \"$dir\\$fname\" -ExtractDir '{code_CefInstallDir}' -Removal"
]
"type": "inno"
},
"shortcuts": [
[
Expand Down
24 changes: 13 additions & 11 deletions bucket/gimp.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
{
"homepage": "https://www.gimp.org/",
"license": "GPL-3.0-only",
"version": "2.10.12",
"url": "https://download.gimp.org/mirror/pub/gimp/v2.10/windows/gimp-2.10.12-setup.exe",
"hash": "40bf733beb554e0a5f5ab5b82e75c035eefd715b00cc0eaf1cd57ba8a7e2ab6f",
"description": "GNU Image Manipulation Program",
"version": "2.10.12-2",
"url": "https://download.gimp.org/mirror/pub/gimp/v2.10/windows/gimp-2.10.12-setup-2.exe",
"hash": "6cd67baf381c7950ec0a46f6ea9b9a6c9191e29fff09a575ce7c7af6d223b613",
"installer": {
"args": [
"/VERYSILENT",
"/NORESTART",
"/DIR=\"$dir\""
"type": "inno",
"include": [
"gimp32on64"
],
"exclude": [
"gimp32",
"deps32",
"debug",
"{sys}"
]
},
"uninstaller": {
"file": "uninst\\unins000.exe",
"args": "/VERYSILENT"
},
"bin": [
[
"bin\\gimp-2.10.exe",
Expand Down
9 changes: 3 additions & 6 deletions bucket/hexo-client.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,10 @@
"version": "1.2.7",
"license": "Apache-2.0",
"description": "Cross-platform hexo client.",
"url": "https://github.com/gaoyoubo/hexo-client/releases/download/v1.2.7/HexoClient-Setup-1.2.7.exe#/dl.7z",
"url": "https://github.com/gaoyoubo/hexo-client/releases/download/v1.2.7/HexoClient-Setup-1.2.7.exe",
"hash": "sha512:074af9ff8579db740cbb4030e0a3097c91730da50898e4e16d651d23917da17e93198036b47833459f0651e058d4a9e7e7d0ace446a78cb21a606eaff5364535",
"installer": {
"script": [
"Expand-7zipArchive \"$dir\\`$PLUGINSDIR\\app-32.7z\" \"$dir\"",
"Remove-Item \"$dir\\`$PLUGINSDIR\", \"$dir\\Uninstall*\" -Force -Recurse"
]
"type": "nsis"
},
"shortcuts": [
[
Expand All @@ -19,7 +16,7 @@
],
"checkver": "github",
"autoupdate": {
"url": "https://github.com/gaoyoubo/hexo-client/releases/download/v$version/HexoClient-Setup-$version.exe#/dl.7z",
"url": "https://github.com/gaoyoubo/hexo-client/releases/download/v$version/HexoClient-Setup-$version.exe",
"hash": {
"url": "$baseurl/latest.yml",
"regex": "sha512: $base64"
Expand Down
7 changes: 5 additions & 2 deletions bucket/megasync.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,11 @@
"url": "https://mega.nz/terms"
},
"version": "4.2.0",
"url": "https://mega.nz/MEGAsyncSetup.exe#/dl.7z",
"url": "https://mega.nz/MEGAsyncSetup.exe",
"hash": "58aed4162478a9dbbea69efbe48d577783a93e63c23e3e3829d6a698e79c1743",
"installer": {
"type": "nsis"
},
"bin": "MEGAsync.exe",
"shortcuts": [
[
Expand All @@ -19,6 +22,6 @@
"github": "https://github.com/meganz/MEGAsync"
},
"autoupdate": {
"url": "https://mega.nz/MEGAsyncSetup.exe#/dl.7z"
"url": "https://mega.nz/MEGAsyncSetup.exe"
}
}
11 changes: 4 additions & 7 deletions bucket/notable.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,10 @@
"license": "AGPL-3.0-or-later",
"architecture": {
"64bit": {
"url": "https://github.com/notable/notable/releases/download/v1.6.2/Notable.Setup.1.6.2.exe#/dl.7z",
"url": "https://github.com/notable/notable/releases/download/v1.6.2/Notable.Setup.1.6.2.exe",
"hash": "sha512:409f660c25e844fe7cdb0cb081c42f740a4715b4f38db4b037a9f1be19e37e5a89b702870726f7ca3ea92f22985baacb05665be1664705e77d7641f72b331dfb",
"installer": {
"script": [
"Expand-7zipArchive \"$dir\\`$PLUGINSDIR\\app-64.7z\" \"$dir\"",
"Remove-Item \"$dir\\`$PLUGINSDIR\" -Force -Recurse"
]
"type": "nsis"
}
}
},
Expand All @@ -26,10 +23,10 @@
"autoupdate": {
"architecture": {
"64bit": {
"url": "https://github.com/notable/notable/releases/download/v$version/Notable.Setup.$version.exe#/dl.7z",
"url": "https://github.com/notable/notable/releases/download/v$version/Notable.Setup.$version.exe",
"hash": {
"url": "$baseurl/latest.yml",
"find": "sha512:\\s+(.*)"
"regex": "sha512: $base64"
}
}
}
Expand Down
20 changes: 5 additions & 15 deletions bucket/simplenote.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,11 @@
"description": "Simplenote is an easy way to keep notes, lists, ideas and more. Your notes stay in sync with all your devices for free.",
"homepage": "https://simplenote.com",
"license": "GPL-2.0",
"url": "https://github.com/Automattic/simplenote-electron/releases/download/v1.6.0/Simplenote-win-1.6.0.exe#/dl.7z",
"url": "https://github.com/Automattic/simplenote-electron/releases/download/v1.6.0/Simplenote-win-1.6.0.exe",
"hash": "sha512:d6f118b9253873e3dad95634897735bd0f5ad19410f85fa925272c09ff594261b4b5fa21a4ffa1647d2941437f9382e8abca45de66583ace1dc658b7bd809844",
"architecture": {
"64bit": {
"installer": {
"script": "Expand-7zipArchive \"$dir\\`$PLUGINSDIR\\app-64.7z\" \"$dir\""
}
},
"32bit": {
"installer": {
"script": "Expand-7zipArchive \"$dir\\`$PLUGINSDIR\\app-32.7z\" \"$dir\""
}
}
"installer": {
"type": "nsis"
},
"post_install": "Remove-Item \"$dir\\`$PLUGINSDIR\" -Recurse",
"bin": "SimpleNote.exe",
"shortcuts": [
[
Expand All @@ -29,10 +19,10 @@
"github": "https://github.com/Automattic/simplenote-electron"
},
"autoupdate": {
"url": "https://github.com/Automattic/simplenote-electron/releases/download/v$version/Simplenote-win-$version.exe#/dl.7z",
"url": "https://github.com/Automattic/simplenote-electron/releases/download/v$version/Simplenote-win-$version.exe",
"hash": {
"url": "$baseurl/latest.yml",
"regex": "sha512:\\s+$base64"
"regex": "sha512: $base64"
}
}
}

0 comments on commit 1594e58

Please sign in to comment.