Skip to content

Commit

Permalink
r0b08x [chore] 5/4/2024, 6:44:46 PM
Browse files Browse the repository at this point in the history
  • Loading branch information
p3x-robot committed May 4, 2024
1 parent 3ebedf8 commit ae81c59
Showing 1 changed file with 22 additions and 6 deletions.
28 changes: 22 additions & 6 deletions .github/workflows/Dockerfile.onenote.snap.arm64
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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/

0 comments on commit ae81c59

Please sign in to comment.