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:
+6
-6
@@ -9,13 +9,13 @@ COPY third_party/akaiutil/ /src/akaiutil/
|
|||||||
WORKDIR /src/akaiutil
|
WORKDIR /src/akaiutil
|
||||||
RUN make
|
RUN make
|
||||||
|
|
||||||
# Stage 2: Build fetch (Go tool)
|
# Stage 2: Build akai-fetch (Go tool)
|
||||||
FROM golang:1.26-alpine AS fetch-builder
|
FROM golang:1.26-alpine AS akai-fetch-builder
|
||||||
|
|
||||||
WORKDIR /src
|
WORKDIR /src
|
||||||
COPY go.mod main.go serve.go /src/
|
COPY go.mod *.go /src/
|
||||||
COPY web/ /src/web/
|
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
|
# Stage 3: Runtime image
|
||||||
FROM debian:11-slim
|
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
|
RUN mkdir -p /data/output/isos /data/output/wavs
|
||||||
|
|
||||||
COPY --from=akaiutil-builder /src/akaiutil/akaiutil /usr/local/bin/
|
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/
|
COPY scripts/extract_wavs.sh /usr/local/bin/
|
||||||
|
|
||||||
WORKDIR /data
|
WORKDIR /data
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
ENTRYPOINT ["fetch"]
|
ENTRYPOINT ["akai-fetch"]
|
||||||
CMD ["serve", "-p", "8080", "--host", "0.0.0.0"]
|
CMD ["serve", "-p", "8080", "--host", "0.0.0.0"]
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
BIN := fetch
|
BIN := akai-fetch
|
||||||
IMAGE := akai-fetch
|
IMAGE := akai-fetch
|
||||||
ELECTRON_DIR := electron
|
ELECTRON_DIR := electron
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -8,10 +8,10 @@ let serverPort = 0;
|
|||||||
|
|
||||||
function findServerBinary() {
|
function findServerBinary() {
|
||||||
const candidates = [
|
const candidates = [
|
||||||
path.join(__dirname, '..', 'fetch'),
|
|
||||||
path.join(__dirname, '..', 'akai-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, 'akai-fetch'),
|
||||||
|
path.join(process.resourcesPath, 'fetch'),
|
||||||
];
|
];
|
||||||
for (const p of candidates) {
|
for (const p of candidates) {
|
||||||
try {
|
try {
|
||||||
|
|||||||
@@ -16,8 +16,8 @@
|
|||||||
],
|
],
|
||||||
"extraResources": [
|
"extraResources": [
|
||||||
{
|
{
|
||||||
"from": "../fetch",
|
"from": "../akai-fetch",
|
||||||
"to": "fetch"
|
"to": "akai-fetch"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"from": "../scripts/extract_wavs.sh",
|
"from": "../scripts/extract_wavs.sh",
|
||||||
@@ -35,8 +35,8 @@
|
|||||||
"artifactName": "${name}-${version}-${arch}.${ext}",
|
"artifactName": "${name}-${version}-${arch}.${ext}",
|
||||||
"extraResources": [
|
"extraResources": [
|
||||||
{
|
{
|
||||||
"from": "../fetch",
|
"from": "../akai-fetch",
|
||||||
"to": "fetch"
|
"to": "akai-fetch"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"from": "../scripts/extract_wavs.sh",
|
"from": "../scripts/extract_wavs.sh",
|
||||||
|
|||||||
Reference in New Issue
Block a user