-
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 build configuration for Debian 12 Bookworm
- Loading branch information
1 parent
e566638
commit db65781
Showing
3 changed files
with
54 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,25 @@ | ||
# Dockerfile for Debian 12 Build Enviroment for Ezra Bible App | ||
|
||
FROM debian:12 | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
RUN apt-get update | ||
RUN apt-get install -y dialog apt-utils 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 | ||
|
||
RUN curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash - | ||
RUN apt-get update | ||
RUN apt-get install -y nodejs | ||
|
||
# Install node 14.17.5 | ||
RUN npm install -g n | ||
RUN n 14.17.5 | ||
|
||
RUN npm install -g electron-packager | ||
RUN npm install -g electron-installer-debian | ||
RUN apt-get install -y unzip | ||
|
||
COPY docker/build_debian12_bookworm.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,12 @@ | ||
#!/bin/sh | ||
# This script triggers all the steps necessary for building and packaging Ezra Bible App on Linux. | ||
|
||
npm run build-linux | ||
npm run deb_bookworm | ||
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 |