File tree Expand file tree Collapse file tree 1 file changed +17
-3
lines changed
Expand file tree Collapse file tree 1 file changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -8,14 +8,28 @@ app_info() {
88
99app_install () {
1010 local version=" ${1:- $(app_version)} "
11+ local package
12+
13+ # Set the package name for specific version
14+ if utils:compare_versions_alt " $version " le " v1.9.0" ; then
15+ package=" ${APP_NAME} "
16+ else
17+ package=" linux-binaries-x64-${version} .zip"
18+ fi
1119
1220 utils:get_file \
13- " https://github.com/jtroo/kanata/releases/download/$version /$APP_NAME " \
14- " $SDD_TEMP_DIR /$APP_NAME "
21+ " https://github.com/jtroo/kanata/releases/download/$version /$package " \
22+ " $SDD_TEMP_DIR /$package "
1523
1624 app_remove
1725
18- install -vD -m755 " $SDD_TEMP_DIR /$APP_NAME " " $SDD_BIN_DIR /$APP_NAME " >&2
26+ # Run install instruction for specific version
27+ if utils:compare_versions_alt " $version " le " v1.9.0" ; then
28+ install -vD -m755 " $SDD_TEMP_DIR /$package " " $SDD_BIN_DIR /$APP_NAME " >&2
29+ else
30+ utils:extract " $SDD_TEMP_DIR /$package "
31+ install -vD -m755 " $SDD_TEMP_DIR /kanata_linux_cmd_allowed_x64" " $SDD_BIN_DIR /$APP_NAME " >&2
32+ fi
1933}
2034
2135app_remove () {
You can’t perform that action at this time.
0 commit comments