Skip to content

Commit

Permalink
Bump version, bundle with Python and update prefs demo image
Browse files Browse the repository at this point in the history
  • Loading branch information
Zyl9393 committed Jan 17, 2023
1 parent ca94e89 commit 29601d4
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 8 deletions.
2 changes: 1 addition & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 2.6 (2023-01-17)
# 2.6 (2023-01-18)
* Fix time-dependent effects (text fade-out, WASD acceleration) becoming jerky on Windows when the system has been running for more than two days.
* Can now specify additional speed multiplier that is used for all movement operations when the scene's unit system is set to 'None'.

Expand Down
2 changes: 1 addition & 1 deletion __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "Mouse Strafing",
"description": "Strafe in the 3D View using the mouse.",
"author": "Zyl",
"version": (2, 5),
"version": (2, 6),
"blender": (2, 93, 0),
"category": "3D View"
}
Expand Down
31 changes: 31 additions & 0 deletions build/zip_for_blender.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# This file must be run from the repository root.

projectName = "mouse_strafing"
additionalDirectories = []
additionalFiles = ["LICENSE"]

def getVersion():
import re
with open("__init__.py", mode="r") as f:
m = re.compile(r"""^\s*"version"\s*:\s*\(\s*(?P<major>\d+)\s*,\s*(?P<minor>\d+)\s*(,\s*(?P<patch>\d+)\s*)?\)\s*,?\s*$""", re.MULTILINE).search(f.read())
if m.group("patch") != None:
return f'{m.group("major")}.{m.group("minor")}.{m.group("patch")}'
else:
return f'{m.group("major")}.{m.group("minor")}'

if __name__ == "__main__":
import zipfile
from pathlib import Path
zipFileName = f"{projectName}-{getVersion()}.zip"
print(f"Writing {zipFileName}...")
with zipfile.ZipFile(zipFileName, "w", zipfile.ZIP_DEFLATED) as zf:
for dir in additionalDirectories:
for path in Path(dir).rglob("*"):
print(f"Adding {path} as {path.as_posix()}")
zf.write(path, path.as_posix())
for path in Path(".").glob("*.py"):
print(f"Adding {path} as {path.as_posix()}")
zf.write(path, path.as_posix())
for fileName in additionalFiles:
print(f"Adding {fileName} as {fileName}")
zf.write(fileName, fileName)
Binary file modified img/prefs.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 0 additions & 6 deletions package.bat

This file was deleted.

0 comments on commit 29601d4

Please sign in to comment.