-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.sh
49 lines (35 loc) · 1.83 KB
/
package.sh
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
49
# shellcheck shell=bash
# FIXME - Shellcheck is actually broken on this script!
###
# version=$(find_latest_version)
# download_base_url="https://downloads.mixxx.org/mixxx-$version"
field homepage https://mixxx.org
field description "Mixxx is Free DJ software that gives you everything you need to perform live mixes."
field version "0.0.0"
bin "Mixxx\\mixxx.exe" "mixxx" "--settingsPath \"\$persist_dir\\appdata\""
shortcut "Mixxx\\mixxx.exe" "Mixxx" "--settingsPath \"\$persist_dir\\appdata\""
field persist appdata
field license "GPL-2.0+"
field dependencies[0] wixtoolset
field dependencies[1] vcredist2015
field architecture.\"32bit\".url ""
field architecture.\"32bit\".hash ""
field architecture.\"64bit\".url ""
field architecture.\"64bit\".hash ""
field checkver.url "https://mixxx.org/download/"
field checkver.re '\bhttps://downloads.mixxx.org/mixxx-([\d.]+)\b'
field autoupdate.hash.url "https://downloads.mixxx.org/mixxx-\$version/mixxx-\$version.sha256sum"
field 'autoupdate.architecture."32bit".url' "https://downloads.mixxx.org/mixxx-\$version/mixxx-\$version-win32.exe#!/_setup.exe"
field 'autoupdate.architecture."64bit".url' "https://downloads.mixxx.org/mixxx-\$version/mixxx-\$version-win64.exe#!/_setup.exe"
#autofill_download
#field 'architecture."32bit".hash' "$(find_sha256sum "mixxx-$version-win32.exe")"
#field 'architecture."64bit".hash' "$(find_sha256sum "mixxx-$version-win64.exe")"
extra_file mixxx.mst
pre_install <<-EOF
dark -nologo -sw -sct -sdet -sui -x "\$dir\\\\\_1" "\$dir\\\\_setup.exe" NUL | Out-Null
rm "\$dir\\\\_setup.exe"
$(ps_install_extra_file mixxx.mst "\$dir\\\\_transform.mst")
run 'msiexec' @('/a', "\`"\$((get-item "\$dir\\\\_1\\\\AttachedContainer\\\\*.msi").FullName)\`"", '/qn', "TARGETDIR=\`"\$dir\`"", "TRANSFORMS=\`"\$dir\\\\_transform.mst\`"")
rm "\$dir\\\\*.*"
rm -Recurse "\$dir\\\\_1"
EOF