Skip to content

Commit

Permalink
Fix OSX for v0.6 build
Browse files Browse the repository at this point in the history
  • Loading branch information
nickroethemeier committed Apr 29, 2019
1 parent 7cba665 commit 13aa348
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
__pycache__
build
dist
.DS_Store
4 changes: 4 additions & 0 deletions build_osx.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
echo "Marking Execute bit on Java JRE binary"
chmod +x src/osx-jre/bin/java
echo "Building Package using PyInstaller"
python3 -m PyInstaller ./uDRAC_osx.spec --onefile --windowed
echo "Copying rest of JRE, JARs and libs to .app file"
cp -R dist/uDRAC\ OSX/* dist/uDRAC\ OSX.app/Contents/MacOS/
2 changes: 1 addition & 1 deletion src/uDRAC.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def connC6100(host):
cmd = '"'+scrpath+'/lin-jre/bin/java" -cp "'+scrpath+'/c6100/JViewer.jar" -Djava.library.path="'+scrpath+'/c6100/lib" com.ami.kvm.jviewer.JViewer '+ JNLPhost + " " + JNLPport + " " + JNLPtoken
os.system(cmd + " &")
elif opsys == "Darwin":
cmd = scrpath+'/osx-jre/bin/java -cp "'+scrpath+'/c6100/JViewer.jar" com.ami.kvm.jviewer.JViewer '+ JNLPhost + " " + JNLPport + " " + JNLPtoken
cmd = '"'+scrpath+'/osx-jre/bin/java" -cp "'+scrpath+'/c6100/JViewer.jar" com.ami.kvm.jviewer.JViewer '+ JNLPhost + " " + JNLPport + " " + JNLPtoken
os.system(cmd + " &")

if debugmsg == 1:
Expand Down

0 comments on commit 13aa348

Please sign in to comment.