Skip to content

Commit

Permalink
make release script
Browse files Browse the repository at this point in the history
  • Loading branch information
PavelBlend committed Mar 2, 2019
1 parent 40563fc commit d79e000
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 6 deletions.
12 changes: 12 additions & 0 deletions make_release.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@

from molecular import bl_info
from zipfile import ZipFile, ZIP_DEFLATED
from os import path, walk


with ZipFile('molecular_{}_win'.format(('.'.join(map(str, bl_info['version'])))) + '.zip', 'w') as z:
for root, _, files in walk('molecular'):
for file in files:
if not file.endswith('.py') and not file.endswith('.pyd'):
continue
z.write(path.join(root, file), compress_type=ZIP_DEFLATED)
20 changes: 14 additions & 6 deletions molecular/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,18 @@
"warning": "", # used for warning icon and text in addons panel
"wiki_url": "http://pyroevil.com/molecular-script-docs/",
"tracker_url": "http://pyroevil.com/contact/" ,
"category": "Object"}
"category": "Object"
}


import bpy
def register():

from . import properties
from . import ui
from . import operators
import bpy

from . import properties
from . import ui
from . import operators

def register():
properties.define_props()
bpy.utils.register_class(operators.MolSimulateModal)
bpy.utils.register_class(operators.MolSimulate)
Expand All @@ -46,6 +47,13 @@ def register():


def unregister():

import bpy

from . import properties
from . import ui
from . import operators

bpy.utils.unregister_class(operators.MolSimulateModal)
bpy.utils.unregister_class(operators.MolSimulate)
bpy.utils.unregister_class(operators.MolSetGlobalUV)
Expand Down
5 changes: 5 additions & 0 deletions sources/setup.bat
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,9 @@ del core.c
rd /s /q build
ren core_37_32.cp37-win32.pyd core_37_32.pyd

move core_35_64.pyd ..\molecular\core_35_64.pyd
move core_37_64.pyd ..\molecular\core_37_64.pyd
move core_35_32.pyd ..\molecular\core_35_32.pyd
move core_37_32.pyd ..\molecular\core_37_32.pyd

pause

0 comments on commit d79e000

Please sign in to comment.