-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot compile #557
Comments
Make sure you're using The Dockerfile doesn't work because there isn't currently a way to run headless without hackery, the entire process is wrapped in an electron app. I also know there are several prebuild and postbuild scripts that you have to run. |
I realized I didn't give you much information. Here is a Dockerfile I just made that builds and exports the built files back into your local directory. I use the --output method to get it to export the built files which needs buildx from docker which might not be installed by default on your system but should be in your repos of whatever you're using.ARG version=v1.4.9
FROM node:18-bullseye AS build-stage
WORKDIR /build
# Clone the repository
RUN git clone https://github.com/Sienci-Labs/gsender.git . && \
git checkout ${version}
# Install dependencies
RUN yarn prepare && yarn install
# Build the project
RUN yarn prebuild-latest && yarn lint && yarn build
FROM scratch AS artifact
#Copy the built files from the build stage to the --output directory
COPY --from=build-stage /build/dist /dist
COPY --from=build-stage /build/bin /bin
# This will dump the build and the bin directories out into the folder with the Dockerfile.
# You can then run these commands to get it running outside of a container
# After build, I tested it running on Node 21.6.2 as of writing this.
# yarn --cwd dist/gsender install
# npm install electron --prefix dist/gsender
# ./bin/gsender
This can be successfully built using this command: This will dump the build and the bin directories out into the folder with the Dockerfile. |
When I try to compile this repo, the
yarn install
step fails with the following:This happens with Arch Linux, Debian stable and alpine:latest.
Additionally, the Docker file does not work. Also,
npm install
instantly fails on latestmain
withERESOLVE
.What's the expected build environment and how to build this software?
The text was updated successfully, but these errors were encountered: