From a17f22ccb2e44cf947dc498f48a6ec4ba14175cf Mon Sep 17 00:00:00 2001 From: David Gwilliam Date: Sun, 21 Jun 2026 22:45:12 -0700 Subject: [PATCH] rename binary from fetch to akai-fetch Consistent with go.mod, usage strings, and docs. Updated Dockerfile, electron config, and Makefile. --- Dockerfile | 12 ++++++------ Makefile | 2 +- electron/main.js | 4 ++-- electron/package.json | 8 ++++---- 4 files changed, 13 insertions(+), 13 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2789fc5..8f3a967 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] diff --git a/Makefile b/Makefile index 683e809..dd230a6 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -BIN := fetch +BIN := akai-fetch IMAGE := akai-fetch ELECTRON_DIR := electron diff --git a/electron/main.js b/electron/main.js index a7fb24b..b2858ab 100644 --- a/electron/main.js +++ b/electron/main.js @@ -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 { diff --git a/electron/package.json b/electron/package.json index 925b3c1..6c79520 100644 --- a/electron/package.json +++ b/electron/package.json @@ -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",