-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add config for building Ubuntu 24.04
- Loading branch information
1 parent
355e027
commit 155c737
Showing
3 changed files
with
67 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Dockerfile for Ubuntu 22.04 Build Enviroment for Ezra Bible App | ||
|
||
FROM ubuntu:24.04 | ||
|
||
ARG HOST_USER | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
RUN apt-get -y update | ||
RUN apt-get -y dist-upgrade | ||
RUN apt-get -y install apt-utils | ||
RUN apt-get -y update | ||
|
||
RUN apt-get install -y dialog build-essential libsword-dev libsqlite3-0 libcurl4-gnutls-dev libicu-dev zlib1g-dev \ | ||
pkg-config icu-devtools subversion git vim sudo curl python3-software-properties cmake | ||
|
||
# AppImage dependencies | ||
RUN apt-get install -y libfuse2 wget | ||
|
||
RUN apt-get install -y curl python3-software-properties | ||
RUN curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash | ||
# Install node 14.17.5 | ||
RUN export NVM_DIR="$HOME/.nvm" && [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" && nvm install 14.17.5 && \ | ||
npm install -g electron-packager electron-installer-debian | ||
|
||
RUN apt-get install -y unzip | ||
RUN apt-get install -y xvfb | ||
|
||
RUN ln -s /usr/bin/python3 /usr/bin/python | ||
|
||
COPY docker/build_ubuntu_2404.sh /build.sh | ||
|
||
ENTRYPOINT ["/build.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
# This script triggers all the steps necessary for building and packaging Ezra Bible App on Linux. | ||
|
||
export NVM_DIR="/root/.nvm" | ||
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm | ||
|
||
git config --global --add safe.directory /github/workspace | ||
|
||
npm run build-linux | ||
npm run deb_2404 | ||
cp release/packages/*.deb $GITHUB_WORKSPACE/ezra-bible-app_latest.deb | ||
|
||
if [ "$GITHUB_EVENT_NAME" = "release" ]; then | ||
node_modules/.bin/sentry-cli --auth-token $SENTRY_TOKEN \ | ||
upload-dif -o tobias-klein -p ezra-bible-app \ | ||
node_modules/node-sword-interface/build/Release/node_sword_interface.node | ||
fi |