rename binary from fetch to akai-fetch

Consistent with go.mod, usage strings, and docs.
Updated Dockerfile, electron config, and Makefile.
This commit is contained in:
2026-06-21 22:45:12 -07:00
parent f195ba5a5c
commit a17f22ccb2
4 changed files with 13 additions and 13 deletions
+6 -6
View File
@@ -9,13 +9,13 @@ COPY third_party/akaiutil/ /src/akaiutil/
WORKDIR /src/akaiutil
RUN make
# Stage 2: Build fetch (Go tool)
FROM golang:1.26-alpine AS fetch-builder
# Stage 2: Build akai-fetch (Go tool)
FROM golang:1.26-alpine AS akai-fetch-builder
WORKDIR /src
COPY go.mod main.go serve.go /src/
COPY go.mod *.go /src/
COPY web/ /src/web/
RUN CGO_ENABLED=0 go build -o /fetch .
RUN CGO_ENABLED=0 go build -o /akai-fetch .
# Stage 3: Runtime image
FROM debian:11-slim
@@ -28,10 +28,10 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
RUN mkdir -p /data/output/isos /data/output/wavs
COPY --from=akaiutil-builder /src/akaiutil/akaiutil /usr/local/bin/
COPY --from=fetch-builder /fetch /usr/local/bin/fetch
COPY --from=akai-fetch-builder /akai-fetch /usr/local/bin/akai-fetch
COPY scripts/extract_wavs.sh /usr/local/bin/
WORKDIR /data
EXPOSE 8080
ENTRYPOINT ["fetch"]
ENTRYPOINT ["akai-fetch"]
CMD ["serve", "-p", "8080", "--host", "0.0.0.0"]
+1 -1
View File
@@ -1,4 +1,4 @@
BIN := fetch
BIN := akai-fetch
IMAGE := akai-fetch
ELECTRON_DIR := electron
+2 -2
View File
@@ -8,10 +8,10 @@ let serverPort = 0;
function findServerBinary() {
const candidates = [
path.join(__dirname, '..', 'fetch'),
path.join(__dirname, '..', 'akai-fetch'),
path.join(process.resourcesPath, 'fetch'),
path.join(__dirname, '..', 'fetch'),
path.join(process.resourcesPath, 'akai-fetch'),
path.join(process.resourcesPath, 'fetch'),
];
for (const p of candidates) {
try {
+4 -4
View File
@@ -16,8 +16,8 @@
],
"extraResources": [
{
"from": "../fetch",
"to": "fetch"
"from": "../akai-fetch",
"to": "akai-fetch"
},
{
"from": "../scripts/extract_wavs.sh",
@@ -35,8 +35,8 @@
"artifactName": "${name}-${version}-${arch}.${ext}",
"extraResources": [
{
"from": "../fetch",
"to": "fetch"
"from": "../akai-fetch",
"to": "akai-fetch"
},
{
"from": "../scripts/extract_wavs.sh",