Skip to content

Commit

Permalink
Release v1.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
vanous committed Nov 25, 2023
1 parent 3a11bd7 commit 8deb438
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 5 deletions.
27 changes: 27 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,32 @@
### Changelog

### 1.0.3

* MVR Improvements:
* Add FixtureID, CustomId... from MVR to Fixture
* Create groups from MVR, migrate groups from str([]) to json
* Clean up unused MVR collections after MVR import
* Add UUID to fixtures and groups

* GDTF Improvements:
* Handle models composed of multiple parts

* App improvements:
* Add initial support for 2D symbols and 2D TOP planning view
* Speed up MVR import - fix GDTF collection caching, cache also MVR imported objects
* Converted Primitives to glb to ensure compatibility with Blender 4.x
* Increment data version and provide migration
* Remove fixture from groups when deleting fixture
* Display revision in fixture listing
* Create new World in case it is missing
* Allow centering selected fixture's Targets
* Handle time during fixture edit processing (prevent errors)
* Check for existence of Dimmer for fixtures without dimmer (prevent errors)
* Add possibility to make fixture geometries selectable
* Display Volume cone on all lights when enabled
* Add generix XYZ fixture to BlenderDMX
* Add support for XYZ Z,Y,Z a nd Rot X,Y,Z attributes and for devices without target

### 1.0.2
* MVR improvements:
* Add collections for GroupObjects and Layers
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ A DMX visualization tool inside <a href="https://blender.org">Blender</a>, desig
First of all, make sure you have installed [Blender 3.0](https://www.blender.org/download/) or higher;
Then, download the `zip` file:

### LATEST RELEASE (STABLE): v1.0.2
### LATEST RELEASE (STABLE): v1.0.3

1. From the [latest release](https://github.com/open-stage/blender-dmx/releases/latest) download the [blenderDMX_v1.0.2.zip](https://github.com/open-stage/blender-dmx/releases/download/v1.0.2/blenderDMX_v1.0.2.zip) file
1. From the [latest release](https://github.com/open-stage/blender-dmx/releases/latest) download the [blenderDMX_v1.0.3.zip](https://github.com/open-stage/blender-dmx/releases/download/v1.0.2/blenderDMX_v1.0.3.zip) file

### ROLLING RELEASE (UNSTABLE)

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": "DMX",
"description": "DMX visualization and programming, with GDTF/MVR and Network support",
"author": "open-stage",
"version": (1, 0, 2),
"version": (1, 0, 3),
"blender": (3, 0, 0),
"location": "3D View > DMX",
"wiki_url": "https://github.com/open-stage/blender-dmx/wiki",
Expand Down
27 changes: 25 additions & 2 deletions scripts/build_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,31 @@
import shutil
from shutil import copytree, ignore_patterns
from pygit2 import Repository
import sys

BUILD_DIR = "build"

def read_version():
line = ""
with open("__init__.py", "r") as f:
while True:
line += f.readline().rstrip()
if "}" in line:
break
version_string = line.replace("bl_info = ","")
bl_info=eval(version_string)
x,y,z = bl_info["version"]
return f"{x}.{y}.{z}"


branch_name = Repository(".").head.shorthand
if branch_name == None:
raise Exception("Run the script from the project root.")
print("branch name", branch_name)
branch_name = "release_v1.0.2"

set_version = read_version()
#branch_name = "release_v1.0.3"
branch_version = branch_name[9:]


release_name = branch_name
if re.match(r"^release_v\d+\.\d+\.\d+$", branch_name):
Expand All @@ -19,6 +36,11 @@
)
release_name = branch_name[8:]


if set_version != branch_version:
print(f"Branch version {branch_version} and add-on version {set_version} do not match. Exit!")
sys.exit()

zip_name = "blenderDMX_" + release_name

print("---------")
Expand Down Expand Up @@ -54,6 +76,7 @@
print("Copying metadata to build directory...")
shutil.copy2("CHANGELOG.md", BUILD_DIR + "/dmx")
shutil.copy2("LICENSE", BUILD_DIR + "/dmx")
shutil.copy2("README.md", BUILD_DIR + "/dmx")

print("Zipping release...")
shutil.make_archive(zip_name, "zip", BUILD_DIR)
Expand Down

0 comments on commit 8deb438

Please sign in to comment.