Skip to content

Commit

Permalink
OP-1170 - Distribution revision (#209)
Browse files Browse the repository at this point in the history
* distribution revision

* comment fix
  • Loading branch information
mizzioisf authored Feb 7, 2024
1 parent 1b00cc1 commit 00ff3c9
Showing 1 changed file with 8 additions and 11 deletions.
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

0 comments on commit 00ff3c9

Please sign in to comment.