-
-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
278 changed files
with
39,857 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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
bin | ||
obj | ||
.vs | ||
App.config |
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,41 @@ | ||
language: generic | ||
|
||
notifications: | ||
email: false | ||
|
||
branches: | ||
only: | ||
- master | ||
|
||
# Environment variables | ||
env: | ||
global: | ||
- MODNAME: HEROsMod | ||
- Deploy: no | ||
|
||
script: | ||
- pwd | ||
- ls | ||
- git tag | ||
- cd $TRAVIS_BUILD_DIR | ||
- ls | ||
- export version=`curl http://javid.ddns.net/tModLoader/tools/latestmodversionsimple.php?modname=$MODNAME` | ||
- echo "Mod Browser version is $version" | ||
- export gitVersion=`git describe --abbrev=0 --tags` | ||
- echo "git version is $gitVersion" | ||
- if [[ "$version" = "$gitVersion" ]]; then echo "Version does match, no need to push release"; Deploy=no; else echo "Version does not match, need to push release"; git config --global user.email "[email protected]"; git config --global user.name "Travis CI"; git tag $version -a -m "TravisCI Autogenerated Release"; git push --quiet https://[email protected]/JavidPack/BossChecklist $version > /dev/null 2>&1; Deploy=yes; fi | ||
- echo $Deploy | ||
|
||
before_deploy: | ||
- wget -O $MODNAME.tmod http://javid.ddns.net/tModLoader/download.php?Down=mods/$MODNAME.tmod | ||
- ls | ||
|
||
# should only deploy if the script doesn't fail, meaning we have a new .tmod file to publish | ||
deploy: | ||
provider: releases | ||
api_key: $GH_REPO_TOKEN | ||
file: "$MODNAME.tmod" | ||
skip_cleanup: true | ||
on: | ||
tags: false | ||
condition: "$Deploy = yes" |
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,23 @@ | ||
using HEROsMod.HEROsModNetwork; | ||
using System; | ||
using Terraria.ModLoader; | ||
|
||
namespace HEROsMod.Commands | ||
{ | ||
class AdminInstructionsCommand : ModCommand | ||
{ | ||
public override CommandType Type => CommandType.Console; | ||
|
||
public override string Command => "HEROsAdmin"; | ||
|
||
public override string Description => "Informs you how to become Admin in HERO's Mod"; | ||
|
||
public override void Action(CommandCaller caller, string input, string[] args) | ||
{ | ||
Console.ForegroundColor = ConsoleColor.Yellow; | ||
Console.WriteLine("Create an account, login, and type /auth " + Network.AuthCode + " to become Admin."); | ||
Console.ResetColor(); | ||
} | ||
} | ||
} | ||
|
Oops, something went wrong.