Commit 056b20b
authored
feat: make installed binary name overridable (default flashduty) (#22)
* feat: make installed binary name overridable via env/make var
install.sh: INSTALLED_NAME defaults to "flashduty" but honours a
caller-supplied INSTALLED_NAME env var so we can install our bundled
copy as "fduty" without shadowing a user's own flashduty installation.
All uses of the installed name (mv target, chmod, PATH message, verify
hint) already reference the variable — only the hardcoded default
literal needed updating.
Makefile: BINARY_NAME switches from := (immediate, non-overridable) to
?= so `make build BINARY_NAME=fduty` produces bin/fduty; default
behaviour (make build) is unchanged.
Public identity (cobra Use: string, help text, FLASHDUTY_* env vars,
Go module, repo name) is untouched.
* ci(release): mirror install.sh + install.ps1 to CDN on every release
The release workflow uploaded binaries + releases/latest but not the install
scripts; those were mirrored only by install-scripts.yml on install.sh/.ps1
changes. Re-upload them here so a release always ships a current installer on
the CDN even when the scripts themselves didn't change.
* ci: bake CDN default MIRROR_URL into mirrored install.sh
The copy served from the CDN now defaults MIRROR_URL to the CDN (injected at
upload time via the new MIRROR_PUBLIC_URL secret), so `curl <cdn>/install.sh |
sh` pulls binaries from the CDN without the caller passing MIRROR_URL. The repo
/ GitHub copy stays generic (defaults to GitHub). A grep guard fails the job if
the default line ever stops matching, so the injection can't silently no-op.1 parent eaea632 commit 056b20b
4 files changed
Lines changed: 39 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
| |||
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
62 | 73 | | |
63 | | - | |
| 74 | + | |
64 | 75 | | |
65 | 76 | | |
66 | 77 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
| |||
97 | 98 | | |
98 | 99 | | |
99 | 100 | | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
191 | | - | |
| 191 | + | |
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
0 commit comments