diff --git a/.github/workflows/Dockerfile.onenote.snap.arm64 b/.github/workflows/Dockerfile.onenote.snap.arm64 index 7e8d5da..77ae744 100644 --- a/.github/workflows/Dockerfile.onenote.snap.arm64 +++ b/.github/workflows/Dockerfile.onenote.snap.arm64 @@ -1,9 +1,20 @@ -FROM snapcore/snapcraft:latest +FROM arm64v8/ubuntu:22.04 -# Install Node.js via NodeSource -RUN apt-get update && apt-get install -y curl && \ - curl -sL https://deb.nodesource.com/setup_lts.x | bash - && \ - apt-get install -y nodejs +# Setup environment and install necessary packages +RUN apt-get update && apt-get install -y \ + curl \ + software-properties-common \ + gnupg \ + ca-certificates + +# Add the NodeSource repository for the latest Node.js LTS version +RUN curl -fsSL https://deb.nodesource.com/setup_lts.x | bash - + +# Install Node.js LTS +RUN apt-get update && apt-get install -y nodejs + +# Install Snapcraft +RUN apt-get install -y snapcraft # Set the working directory WORKDIR /app @@ -14,8 +25,13 @@ COPY . /app # Install project dependencies RUN npm install --verbose -# Build your Electron app +# Build your Electron app (assuming npm script is correctly set) ENV NODE_ENV=production + RUN node ./scripts/fix-packages-publish.js before RUN npm run publish-electron-arm64 --verbose RUN node ./scripts/fix-packages-publish.js after + +# Optional: specify where the snap file should be stored (if you want to copy it out) +# VOLUME [ "/output" ] +# RUN cp *.snap /output/