Permalink
Browse files

* Added .exe installer auto updater to run silently on each run of th…

…e script.

* Updated auto updater file for 0.5.8
  • Loading branch information...
Jonne Nauha@jonnenau-Admino
Jonne Nauha@jonnenau-Admino committed Sep 10, 2012
1 parent f968b84 commit 2f60109026af907846daf385326ad314c62534a2
Showing with 45 additions and 13 deletions.
  1. +29 −0 installer/blender2ogre-auto-updater.txt
  2. +16 −13 io_export_ogreDotScene.py
@@ -0,0 +1,29 @@
;aiu;
[0.5.8]
Name=blender2ogre 0.5.8
ProductVersion=0.5.8.0
URL=http://blender2ogre.googlecode.com/files/blender2ogre-0.5.8.exe
Size=2766806
MD5=2ce6e423116b245636ceda0529d8948f
ServerFileName=blender2ogre-0.5.8.exe
Flags=NoCache
RegistryKey=HKCR\Software\blender2ogre\Version
Version=0.5.8.0
Feature=* Added silent auto update checks if blender2ogre was installed using
Feature1= the .exe installer. This will keep people up to date when new versions are out.
Feature2=* Fix tracker issue 48: Needs to check if outputting to /tmp or ~/.wine/drive_c/tmp on Linux. Thanks to vax456 for providing the patch, added him to contributors. Preview mesh's are now placed under /tmp on Linux systems if the OgreMeshy executable ends with .exe
Feature3=* Fix tracker issue 46: add operationtype to <submesh>
Feature4=* Implement a modal dialog that reports if material names have invalid characters and cant be saved on disk. This small popup will show until user presses left or right mouse (anywhere).
Feature5=* Fix tracker issue 44: XML Attributes not properly escaped in .scene file
Feature6=* Implemented reading OgreXmlConverter path from windows registry. The .msi installer will ship with certain tools so we can stop guessing and making the user install tools separately and setting up paths.
Feature7=* Fix bug that .mesh files were not generated while doing a .txml export. This was result of the late 2.63 mods that forgot to update object facecount before determining if mesh should be exported.
Feature8=* Fix bug that changed settings in the export dialog were forgotten when you re-exported without closing blender. Now settings should persist always from the last export. They are also stored to disk so the same settings are in use when if you restart Blender.
Feature9=* Fix bug that once you did a export, the next time the export location was forgotten. Now on sequential exports, the last export path is remembered in the export dialog.
Feature10=* Remove all local:// from asset refs and make them relative in .txml export. Having relative refs is the best for local preview and importing the txml to existing scenes.
Feature11=* Make .material generate what version of this plugins was used to generate the material file. Will be helpful in production to catch things. Added pretty printing line endings so the raw .material data is easier to read.
Feature12=* Improve console logging for the export stages. Run Blender from cmd prompt to see this information.
Feature13=* Clean/fix documentation in code for future development
Feature14=* Add todo to code for future development
Feature15=* Restructure/move code for easier readability
Feature16=* Remove extra white spaces and convert tabs to space
View
@@ -20,6 +20,8 @@
'''
CHANGELOG
0.5.8
* Added silent auto update checks if blender2ogre was installed using
the .exe installer. This will keep people up to date when new versions are out.
* Fix tracker issue 48: Needs to check if outputting to /tmp or
~/.wine/drive_c/tmp on Linux. Thanks to vax456 for providing the patch,
added him to contributors. Preview mesh's are now placed under /tmp
@@ -30,7 +32,7 @@
user presses left or right mouse (anywhere).
* Fix tracker issue 44: XML Attributes not properly escaped in .scene file
* Implemented reading OgreXmlConverter path from windows registry.
The .msi installer will ship with certain tools so we can stop guessing
The .exe installer will ship with certain tools so we can stop guessing
and making the user install tools separately and setting up paths.
* Fix bug that .mesh files were not generated while doing a .txml export.
This was result of the late 2.63 mods that forgot to update object
@@ -838,21 +840,23 @@ def load_config():
print( 'ERROR: unknown platform' )
assert 0
# Windows .msi installer spesific tool paths, always overrides config.
try:
if sys.platform.startswith('win'):
import winreg
# Find the blender2ogre install path from windows registry
registry_key = winreg.OpenKey(winreg.HKEY_CLASSES_ROOT, r'Software\blender2ogre', 0, winreg.KEY_READ)
msi_install_dir = winreg.QueryValueEx(registry_key, "Path")[0]
if msi_install_dir != "":
# todo: Enable more when/if more tools can be shipped.
print("Using windows registry install path for certain tools:", msi_install_dir)
CONFIG['OGRETOOLS_XML_CONVERTER'] = msi_install_dir + 'OgreXmlConverter.exe'
#CONFIG['OGRETOOLS_MESH_MAGICK'] = msi_install_dir + 'MeshMagick.exe'
#CONFIG['OGRE_MESHY'] = msi_install_dir + 'Ogre Meshy.exe'
#CONFIG['IMAGE_MAGICK_CONVERT'] = msi_install_dir + 'convert.exe'
#CONFIG['NVIDIATOOLS_EXE'] = msi_install_dir + 'nvdxt.exe'
#CONFIG['NVCOMPRESS'] = msi_install_dir + 'nvcompress.exe'
exe_install_dir = winreg.QueryValueEx(registry_key, "Path")[0]
if exe_install_dir != "":
# OgreXmlConverter
if os.path.isfile(exe_install_dir + "OgreXmlConverter.exe"):
print ("Using OgreXmlConverter from install path:", exe_install_dir + "OgreXmlConverter.exe")
CONFIG['OGRETOOLS_XML_CONVERTER'] = exe_install_dir + "OgreXmlConverter.exe"
# Run auto updater as silent. Notifies user if there is a new version out.
# This will not show any UI if there are no update and will go to network
# only once per 2 days so it wont be spending much resources either.
# todo: Move this to a more appropriate place than load_config()
if os.path.isfile(exe_install_dir + "check-for-updates.exe"):
subprocess.Popen([exe_install_dir + "check-for-updates.exe", "/silent"])
except Exception as e:
print("Exception while reading windows registry:", e)
@@ -2189,7 +2193,6 @@ def execute(self, context):
print( cmd )
#subprocess.call(cmd)
subprocess.Popen(cmd)
else:
#subprocess.call([CONFIG_OGRE_MESHY, 'C:\\tmp\\preview.mesh'])
subprocess.Popen( [CONFIG['OGRE_MESHY'], 'C:\\tmp\\preview.mesh'] )

0 comments on commit 2f60109

Please sign in to comment.