|
76 | 76 | ext=".exe" |
77 | 77 | fi |
78 | 78 |
|
79 | | - for cmd in lssh lscp lsftp lssync lsdiff lsshfs lsmon lsshell lsmux lspipe; do |
| 79 | + cmds="lssh lscp lsftp lssync lsdiff lsmon lsshell lsmux lspipe" |
| 80 | + if [ "${GOOS}" != "windows" ]; then |
| 81 | + cmds="${cmds} lsshfs" |
| 82 | + fi |
| 83 | +
|
| 84 | + for cmd in ${cmds}; do |
80 | 85 | go build -o "dist/bin/${cmd}${ext}" "./cmd/${cmd}" |
81 | 86 | done |
82 | 87 |
|
@@ -105,17 +110,35 @@ jobs: |
105 | 110 | case "$1" in |
106 | 111 | full) echo "Full lssh suite with SSH, transfer, monitoring, and parallel shell tools." ;; |
107 | 112 | core) echo "Core SSH client package for the lssh suite." ;; |
108 | | - transfer) echo "Transfer, diff, and mount tools package for the lssh suite, including lscp, lsftp, lssync, lsdiff, and lsshfs." ;; |
| 113 | + transfer) |
| 114 | + if [ "$GOOS" = "windows" ]; then |
| 115 | + echo "Transfer and diff tools package for the lssh suite, including lscp, lsftp, lssync, and lsdiff." |
| 116 | + else |
| 117 | + echo "Transfer, diff, and mount tools package for the lssh suite, including lscp, lsftp, lssync, lsdiff, and lsshfs." |
| 118 | + fi |
| 119 | + ;; |
109 | 120 | monitor) echo "Monitoring tools package for the lssh suite, including lsmon." ;; |
110 | 121 | sysadmin) echo "Sysadmin tools package for the lssh suite, including lsshell, lsmux, and lspipe." ;; |
111 | 122 | esac |
112 | 123 | } |
113 | 124 |
|
114 | 125 | package_binaries() { |
115 | 126 | case "$1" in |
116 | | - full) echo "lssh lscp lsftp lssync lsdiff lsshfs lsmon lsshell lsmux lspipe" ;; |
| 127 | + full) |
| 128 | + if [ "$GOOS" = "windows" ]; then |
| 129 | + echo "lssh lscp lsftp lssync lsdiff lsmon lsshell lsmux lspipe" |
| 130 | + else |
| 131 | + echo "lssh lscp lsftp lssync lsdiff lsshfs lsmon lsshell lsmux lspipe" |
| 132 | + fi |
| 133 | + ;; |
117 | 134 | core) echo "lssh" ;; |
118 | | - transfer) echo "lscp lsftp lssync lsdiff lsshfs" ;; |
| 135 | + transfer) |
| 136 | + if [ "$GOOS" = "windows" ]; then |
| 137 | + echo "lscp lsftp lssync lsdiff" |
| 138 | + else |
| 139 | + echo "lscp lsftp lssync lsdiff lsshfs" |
| 140 | + fi |
| 141 | + ;; |
119 | 142 | monitor) echo "lsmon" ;; |
120 | 143 | sysadmin) echo "lsshell lsmux lspipe" ;; |
121 | 144 | esac |
|
0 commit comments