forked from HorizenOfficial/zencash-swing-wallet-ui
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from Pega88/feature/small-ui-fixes
Feature/small ui fixes
- Loading branch information
Showing
29 changed files
with
351 additions
and
488 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,85 @@ | ||
#!/bin/bash | ||
|
||
############################################ | ||
# Created by @Pega88 && @Jon_S_Layton # | ||
# v1.0.0 16 Feb 2018 # | ||
############################################ | ||
|
||
echo "***************************" | ||
echo "|| Checking dependencies ||" | ||
echo "***************************" | ||
echo "" | ||
|
||
#fetch + install jar2app | ||
if [ -e /usr/local/bin/jar2app ] | ||
then | ||
echo "jar2app already installed - OK" | ||
else | ||
git clone https://github.com/Jorl17/jar2app | ||
cd jar2app | ||
chmod +x install.sh uninstall.sh | ||
sudo ./install.sh /usr/local/bin | ||
cd .. | ||
rm -rf jar2app | ||
fi | ||
|
||
#fetch + install dylibbundler | ||
if [ -e /usr/local/bin/dylibbundler ] | ||
then | ||
echo "dylibbundler already installed - OK" | ||
else | ||
git clone https://github.com/auriamg/macdylibbundler | ||
cd macdylibbundler | ||
sudo make install | ||
cd .. | ||
rm -rf macdylibbundler | ||
fi | ||
|
||
if [ ! -e ./zcld ] | ||
then | ||
echo "please provide zcld in the root directory" | ||
else | ||
echo "found zcld - OK" | ||
fi | ||
|
||
if [ ! -e ./zcl-cli ] | ||
then | ||
echo "please provide zcl-cli in the root directory" | ||
else | ||
echo "found zcl-cli - OK" | ||
fi | ||
echo "" | ||
echo "******************" | ||
echo "|| building JAR ||" | ||
echo "******************" | ||
echo "" | ||
|
||
#build the jar from source | ||
ant jar -f src/build/build.xml | ||
|
||
echo "" | ||
echo "*******************" | ||
echo "|| Packaging App ||" | ||
echo "*******************" | ||
echo "" | ||
#package jar to app | ||
jar2app build/jars/ZclassicSwingWallet.jar -i ./src/resources/images/zclassic-logo.icns | ||
|
||
#add zcld and zcl-cli into the required Contents folder of the App | ||
cp ./zcld ./ZclassicSwingWallet.app/Contents/zcld | ||
cp ./zcl-cli ./ZclassicSwingWallet.app/Contents/zcl-cli | ||
|
||
|
||
chmod +x ./ZclassicSwingWallet.app/Contents/zcld | ||
chmod +x ./ZclassicSwingWallet.app/Contents/zcl-cli | ||
echo "" | ||
echo "**********************************" | ||
echo "|| Statically linking libraries ||" | ||
echo "**********************************" | ||
echo "" | ||
|
||
#statically build required libraries | ||
dylibbundler -od -b -x ./ZclassicSwingWallet.app/Contents/zcld \ | ||
-x ./ZclassicSwingWallet.app/Contents/zcl-cli \ | ||
-d ./ZclassicSwingWallet.app/Contents/libs \ | ||
-p @executable_path/libs |
Large diffs are not rendered by default.
Oops, something went wrong.
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
Oops, something went wrong.