Skip to content
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

OP-1170 - Distribution revision #209

Merged
merged 2 commits into from
Feb 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 8 additions & 11 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
##############################################################################
#
# Makefile for building Open Hospital releases.
# Makefile for building Open Hospital release packages.
#
# To list the available targets issue: make help
# The following environment variables can be set before running make:
# -> OH_VERSION: Open Hospital version
Expand Down Expand Up @@ -303,6 +304,7 @@ $(CLIENT).zip:
cp -f ./openhospital-gui/oh.ico $(CLIENT)/
# remove unnecessary files
rm -f $(CLIENT)/oh/README.md
rm -f $(CLIENT)/ohmac.sh
# copy manuals
cp *.pdf $(CLIENT)/doc
# Set oh folder
Expand Down Expand Up @@ -331,6 +333,7 @@ $(WIN32).zip:
cp -f ./openhospital-gui/oh.ico $(WIN32)/
# remove unnecessary files
rm -f $(WIN32)/oh.sh
rm -f $(WIN32)/ohmac.sh
rm -f $(WIN32)/oh/README.md
# copy manuals
cp *.pdf $(WIN32)/doc
Expand Down Expand Up @@ -360,6 +363,7 @@ $(WIN64).zip:
cp -f ./openhospital-gui/oh.ico $(WIN64)/
# remove unnecessary files
rm -f $(WIN64)/oh.sh
rm -f $(WIN64)/ohmac.sh
rm -f $(WIN64)/oh/README.md
# copy manuals
cp *.pdf $(WIN64)/doc
Expand Down Expand Up @@ -390,6 +394,7 @@ $(LINUX32).tar.gz:
# remove unnecessary files
rm -f $(LINUX32)/oh.bat
rm -f $(LINUX32)/oh.ps1
rm -f $(LINUX32)/ohmac.sh
rm -f $(LINUX32)/oh/README.md
# copy manuals
cp *.pdf $(LINUX32)/doc
Expand Down Expand Up @@ -421,6 +426,7 @@ $(LINUX64).tar.gz:
# remove unnecessary files
rm -f $(LINUX64)/oh.bat
rm -f $(LINUX64)/oh.ps1
rm -f $(LINUX64)/ohmac.sh
rm -f $(LINUX64)/oh/README.md
# copy manuals
cp *.pdf $(LINUX64)/doc
Expand Down Expand Up @@ -460,18 +466,9 @@ $(FULLDISTRO).zip:
sed -i 's/^\$$script\:OH_DIR\=\".\"/\$$script\:OH_DIR\=\"oh\"/g' $(FULLDISTRO)/oh.ps1
sed -i 's/set\ OH_DIR=\".\"/\set\ OH_DIR\=\"oh\"/g' $(FULLDISTRO)/oh.bat
sed -i 's/^\OH_DIR\=\".\"/OH_DIR\=\"oh\"/g' $(FULLDISTRO)/oh.sh
sed -i 's/^\OH_DIR\=\".\"/OH_DIR\=\"oh\"/g' $(FULLDISTRO)/ohmac.sh
# give exec permissions to startup script
chmod 755 $(FULLDISTRO)/oh.sh
#### windows
# download JAVA JRE
wget -q -nc $(JAVA_URL)/$(JRE_WIN64)
# download MariaDB / MySQL
wget -q -nc $(MYSQL_URL)/mariadb-$(MYSQL_WIN64_VER)/winx64-packages/$(MYSQL_WIN64)
#### linux
# download JAVA JRE
wget -q -nc $(JAVA_URL)/$(JRE_LINUX64)
# download MariaDB / MySQL
wget -q -nc $(MYSQL_URL)/mariadb-$(MYSQL_LINUX64_VER)/bintar-linux-systemd-x86_64/$(MYSQL_LINUX64)
# copy API jar
cp -a ./openhospital-api/target/$(OH_API_JAR) $(FULLDISTRO)/oh/bin
# copy API configuration file
Expand Down
Loading