-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
5: Adds installation scripts and updates readme
- Loading branch information
Showing
6 changed files
with
68 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
build/ | ||
dist/ | ||
*.pyc |
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 |
---|---|---|
@@ -1,3 +1,15 @@ | ||
# AcesUp | ||
|
||
A solitaire game played in Terminal | ||
|
||
To play, simply execute the `./acesup` script. | ||
|
||
# Installation | ||
Linux only: | ||
You can compile and install the game by executing the `./install.sh` script using root privileges. | ||
|
||
You can also compile the game into a binary using the command `pyinstaller acesup.spec --onefile`. This will place | ||
the compiled binary program in the `./dist` directory | ||
|
||
# Bugs | ||
Please report any issues to https://github.com/pbarnum/acesup |
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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
#!/usr/bin/python | ||
|
||
import sys | ||
sys.path.append('./src/AcesUp') | ||
from AcesUp import AcesUp | ||
|
||
game = AcesUp() | ||
|
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,28 @@ | ||
# -*- mode: python -*- | ||
|
||
block_cipher = None | ||
|
||
|
||
a = Analysis(['acesup'], | ||
pathex=['/home/p-trick/Projects/acesup'], | ||
binaries=[], | ||
datas=[], | ||
hiddenimports=["enum", "json"], | ||
hookspath=[], | ||
runtime_hooks=[], | ||
excludes=[], | ||
win_no_prefer_redirects=False, | ||
win_private_assemblies=False, | ||
cipher=block_cipher) | ||
pyz = PYZ(a.pure, a.zipped_data, | ||
cipher=block_cipher) | ||
exe = EXE(pyz, | ||
a.scripts, | ||
a.binaries, | ||
a.zipfiles, | ||
a.datas, | ||
name='acesup', | ||
debug=False, | ||
strip=False, | ||
upx=True, | ||
console=True ) |
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,25 @@ | ||
#!/bin/bash | ||
|
||
# we need root to run | ||
if [[ `id -u` -ne 0 ]]; then | ||
echo "Please run as root" | ||
exit | ||
fi | ||
|
||
# vars | ||
NAME=acesup | ||
SPEC=$NAME.spec | ||
DIST_BIN=./dist/$NAME | ||
PATH_BIN=/usr/bin/$NAME | ||
|
||
# build the game | ||
echo -e "Building $NAME...\n" | ||
pyinstaller $SPEC --onefile | ||
|
||
# move the binary to the path | ||
echo -e "\nAdding $NAME to path..." | ||
mv $DIST_BIN $PATH_BIN | ||
|
||
# change group/owner for game | ||
echo -e "\nChanging ownership for $NAME..." | ||
chown root:$USER $PATH_BIN |
Empty file.