Skip to content

Commit

Permalink
v0.3 release
Browse files Browse the repository at this point in the history
  • Loading branch information
Marek Maskarinec committed May 29, 2021
1 parent ca4c244 commit 6064e98
Show file tree
Hide file tree
Showing 6 changed files with 58 additions and 50 deletions.
Binary file modified bin/tophat-win.zip
Binary file not shown.
Binary file modified bin/tophat.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion bin/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@

v0.3
93 changes: 46 additions & 47 deletions cmd/tophat-cli
Original file line number Diff line number Diff line change
Expand Up @@ -106,51 +106,50 @@ function package() {
echo "done"
}

if [ "$1" == "run" ]; then
$Path/bin/tophat-linux
exit 0
fi

if [ "$1" == "package" ]; then
package "" $2 $3
exit 0
fi

if [ "$1" == "install" ]; then
setup $2
exit 0
fi

if [ "$1" == "update" ]; then
update
rm tophat.zip
exit 0
fi

if [ "$1" == "uninstall" ]; then
clean
exit 0
fi

if [ "$1" == "get" ]; then
get
exit 0
fi

if [ "$1" == "init" ]; then
cp $Path/*.um ./
exit 0
fi

echo "tophat v0.2 cli tool"
echo "made by Marek Maskarinec"
echo "invalid arguments. usage:"
echo " run: runs the game in current directory"
echo " init: initializes current directory with hello world game"
echo " libs: copies libraries to current directory. this is done automatically, if updating in tophat directory"
echo " package [ platform ] [ game name ]: makes a package of the game in current directory"
echo " install [ package path ]: installs tophat from archive specified by path"
echo " update: checks for update. if new version is available, downloads it and installs it"
echo " uninstall: removes tophat data."
echo " get: gets tophat data"
case $1 in
("run")
$Path/bin/tophat-linux
;;
("package")
package "" $2 $3
;;
("install")
setup $2
;;
("update")
update
rm tophat.zip
;;
("uninstall")
clean
;;
("get")
get
;;
("init")
cp $Path/*.um ./
;;
("version")
if [ -f "/usr/share/tophat/version" ]; then
cat $Path/version
else
echo "tophat is not installed"
fi
;;
*)
echo "tophat v0.3 cli tool"
echo "made by Marek Maskarinec"
echo "invalid arguments. usage:"
echo " run: runs the game in current directory"
echo " init: initializes current directory with hello world game"
echo " libs: copies libraries to current directory. this is done automatically, if updating in tophat directory"
echo " package [ platform ] [ game name ]: makes a package of the game in current directory"
echo " install [ package path ]: installs tophat from archive specified by path"
echo " update: checks for update. if new version is available, downloads it and installs it"
echo " uninstall: removes tophat data."
echo " get: gets tophat data"
echo "more info on discord server: https://discord.gg/PcT7cn59h9"
;;
esac


6 changes: 6 additions & 0 deletions etc/win-readme
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
How to use:
init.bat - creates a new tophat project
package.bat - package a project for release

Additional info can be found here: https://github.com/marekmaskarinec/tophat
Discord server: https://discord.gg/PcT7cn59h9
7 changes: 5 additions & 2 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ WIN_FULL=$(SOURCES) lib/rawdraw/chew.c lib/windows/libumka_static.a $(WARNINGS)
#build: $(OBJ)
# $(CC) $(OBJ) $(LINUX_FULL) -o tophat

VERSION=v0.3

build: libs
$(CC) -o tophat $(SRC) $(LINUX_FULL) $(RELEASE_FLAGS) -s -Os

Expand Down Expand Up @@ -61,14 +63,15 @@ package:

win-package:
mkdir -p tophat-win/bin
mkdir -p tophat-win/preset
cp tophat tophat-win/bin/tophat-linux
cp tophat.exe tophat-win/bin/tophat-win.exe
echo $(VERSION) > tophat-win/version
cp examples/preset/*.um tophat-win/preset
cp -r examples/* tophat-win/
mv tophat-win/README.md tophat-win/examples.txt
cp cmd/run.bat tophat-win/preset
cp cmd/init.bat tophat-win/
cp cmd/package.bat tophat-win/
cp etc/win-readme tophat-win/readme.txt
rm -rf bin/tophat-win.zip
zip -Z store -y -q -r bin/tophat-win.zip tophat-win
rm -r tophat-win
Expand Down

0 comments on commit 6064e98

Please sign in to comment.