Skip to content

Commit

Permalink
Updated mod_info, updated release script
Browse files Browse the repository at this point in the history
  • Loading branch information
jsbursik committed Dec 12, 2021
1 parent c6efdf4 commit 67f788e
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"java.project.exportJar.targetPath": "${workspaceFolder}/jars/${workspaceFolderBasename}.jar",
"java.project.exportJar.targetPath": "${workspaceFolder}/jars/DynamicTariffs.jar",
"java.project.referencedLibraries": {
"include": [
"lib/**/*.jar"
Expand Down
Binary file renamed jars/Dynamic Tariffs.jar → jars/DynamicTariffs.jar
Binary file not shown.
Binary file modified lib/starfarer.api.jar
Binary file not shown.
6 changes: 3 additions & 3 deletions mod_info.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"id": "dynamictariffs",
"name": "Dynamic Tariffs",
"version": "1.3",
"version": "1.4",
"description": "Dynamically changes the tariffs of markets you visit based on your reputation with the owning faction.\n\nThis mod can be added/removed at any time\n\nSettings can be found in settings.json",
"gameVersion": "0.95a-RC15",
"gameVersion": "0.95.1a",
"author": "Tuv0x",
"utility": "true",
"jars": [
"jars/Dynamic Tariffs.jar"
"jars/DynamicTariffs.jar"
],
"modPlugin": "dynamictariffs.DynamicTariffsPlugin"
}
7 changes: 4 additions & 3 deletions release.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
import platform
import json

platform = platform.system()
opsys = platform.system()
mod_path = dirname(abspath(__file__))
mod_name = ""
utility = False

if platform.lower() == "windows":
if opsys.lower() == "windows":
stripped_path = mod_path.split("\\")
mod_name = stripped_path[-1]

if platform.lower() == "linux":
if opsys.lower() == "linux":
stripped_path = mod_path.split("/")
mod_name = stripped_path[-1]

Expand All @@ -23,6 +23,7 @@
version = input("Enter new version number: ")
json_object["version"] = version


mod_info = open("mod_info.json", "w")
json.dump(json_object, mod_info, indent=4)
mod_info.close()
Expand Down

0 comments on commit 67f788e

Please sign in to comment.