-
Notifications
You must be signed in to change notification settings - Fork 3
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 #13 from JavaCardSpot-dev/development
Final touches
- Loading branch information
Showing
24 changed files
with
135 additions
and
646 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
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,63 @@ | ||
#!/bin/bash | ||
VERSION=1.0 | ||
DIR='/usr/share/java/jcappstore/' | ||
|
||
if ! cat ${DIR}/jcappstore-do-not-ask.info ; then | ||
|
||
#'sudo chown -R' stuff must have root | ||
if [[ $EUID -ne 0 ]]; then | ||
echo "You must run JCAppStore as a superuser for the first time." | ||
exit 2; | ||
fi | ||
|
||
#check GPG presence | ||
if ! gpg --help > /dev/null 2&>1 ; then | ||
echo "You don't have GnuPG installed, the store will be unable to verify software integrity.\ | ||
this can be fixed anytime by GnuPG installation and JCAppStore key import." | ||
echo "Next time, the application will start WITHOUT THIS NOTICE!" | ||
#import GPG key if possible | ||
else | ||
if ! gpg --list-keys 3D6FE2832EDFE9C9 > /dev/null 2&>1 ; then | ||
echo "JCAppStore automatically verifies the software integrity for you. In order to do that" \ | ||
"we need to import our public key to your keyring and set the ultimate trust." | ||
echo "You don't have to import the key, then the verification will not work. This can be" \ | ||
"changed anytime." | ||
echo "Do you wish to import y/n?" | ||
read ANSWER | ||
while [ "$ANSWER" != "y" ] && [ "$ANSWER" != "n" ] ; do | ||
echo "Wrong answer. Try again:" | ||
read ANSWER | ||
done | ||
if [[ "$ANSWER" == "y" ]] ; then | ||
gpg --import ${DIR}/store.asc | ||
(echo 5 && echo y)|gpg --command-fd 0 --expert --edit-key 3D6FE2832EDFE9C9 trust | ||
echo "The key has been imported." | ||
else | ||
echo "The key can be imported anytime. Next time, the application will start WITHOUT THIS NOTICE!" | ||
fi | ||
fi | ||
fi | ||
|
||
|
||
#change owner to current user for jcappstore | ||
if sudo chown ${SUDO_USER}: /usr/bin/jcapp ; then | ||
echo "Setting shell executable rights to ${SUDO_USER}." | ||
else | ||
echo "Failed to set current user's ownership for /usr/bin/jcapp" \ | ||
": Either do this manually or use \"sudo jcapp\" to run the store each time." | ||
echo "Use \"sudo chown -R [your user name]: /usr/bin/jcapp\"" | ||
fi | ||
if sudo chown -R ${SUDO_USER}: /usr/share/java/jcappstore ; then | ||
echo "Setting access rights to ${SUDO_USER}." | ||
echo "The store has been succesfully set. Run jcapp again, now without super user." | ||
touch ${DIR}jcappstore-do-not-ask.info | ||
exit 0; | ||
else | ||
echo "Failed to set current user's ownership for /usr/share/java/jcappstore" \ | ||
": Either do this manually or use \"sudo jcapp\" to run the store each time." | ||
echo "Use \"sudo chown -R [your user name]: /usr/share/java/jcappstore\"" | ||
fi | ||
touch ${DIR}jcappstore-do-not-ask.info | ||
fi | ||
cd $DIR | ||
java -jar ./JCAppStore-${VERSION}.jar |
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
File renamed without changes.
Binary file not shown.
0
installer-unix/installer.sh → installer-unix/targenerator.sh
100755 → 100644
File renamed without changes.
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
Binary file not shown.
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
Binary file not shown.
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 |
---|---|---|
|
@@ -18,7 +18,7 @@ | |
<info> | ||
<appname>JCAppStore</appname> | ||
<appversion>1.0</appversion> | ||
<appsubpath>JCAppStore-1.0</appsubpath> | ||
<appsubpath>JCAppStore</appsubpath> | ||
<javaversion>1.8</javaversion> | ||
<authors> | ||
<author name="Jiří Horák" email="[email protected]"/> | ||
|
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
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.