Skip to content

Commit

Permalink
Updated Blender
Browse files Browse the repository at this point in the history
  • Loading branch information
apps.0install.net committed Sep 23, 2021
1 parent bf80d34 commit 5565209
Show file tree
Hide file tree
Showing 10 changed files with 96 additions and 93 deletions.
33 changes: 4 additions & 29 deletions gui/blender-linux.watch.py
Original file line number Diff line number Diff line change
@@ -1,31 +1,6 @@
#os=Linux
from urllib import request
import re
from datetime import datetime
import sys, os
sys.path.insert(0, os.path.abspath(os.path.dirname(__file__)))
import blender

def regex(url, pattern):
return re.findall(pattern, request.urlopen(url).read().decode('utf-8'))

def to_zi_version(input):
suffix = ''
if input.endswith('-alpha'):
input = input.replace('-alpha', '')
suffix = '-pre-pre'
if input.endswith('-beta'):
input = input.replace('-beta', '')
suffix = '-pre'
if not input[-1].isdigit():
input = input[:-1] + '-' + str(ord(input[-1]) - 96)
return input + suffix

releases = []

for version_main in regex('https://download.blender.org/release/', r'>Blender([\d\.a-z]+)\/<\/a>'):
for match in regex('https://download.blender.org/release/Blender' + version_main + '/', r'>blender-([\d\.\-a-z]+)-linux-x64\.tar\.xz<\/a>\s+(..-...-....)'):
releases.append({
'version': to_zi_version(match[0].replace('-release', '').replace('rc', '-rc')),
'version-main': version_main,
'version-full': match[0],
'stability': 'testing' if 'alpha' in match[0] or 'beta' in match[0] or 'rc' in match[0] else 'stable',
'released': datetime.strftime(datetime.strptime(match[1], '%d-%b-%Y'), '%Y-%m-%d')
})
releases = blender.releases('linux-x64.tar.xz')
23 changes: 23 additions & 0 deletions gui/blender-linux.xml
Original file line number Diff line number Diff line change
Expand Up @@ -400,4 +400,27 @@
<archive extract="blender-2.83.13-linux64" href="https://download.blender.org/release/Blender2.83/blender-2.83.13-linux64.tar.xz" type="application/x-xz-compressed-tar" size="134235840"/>
</implementation>
</group>

<group license="GPL v2 (GNU General Public License)">
<implementation arch="Linux-x86_64" version="2.83.14" released="2021-05-12" stability="stable" main="blender-2.83.14-stable+blender-v2-83-release.759fd9e4c204-linux.x86_64-release/blender" id="sha1new=ff39dd6750239c39160d7e393ea6c9833d8b7bc3">
<manifest-digest sha256new="FTKN3L5E4MQOPRLVUO2GBT6NVYM4ORDAMFGSEFPNOZZPPMQRIX5Q"/>
<archive href="https://download.blender.org/release/Blender2.83/blender-2.83.14-linux-x64.tar.xz" type="application/x-xz-compressed-tar" size="123209536"/>
</implementation>
<implementation arch="Linux-x86_64" version="2.83.15" released="2021-05-20" stability="stable" main="blender-2.83.15-stable+blender-v2-83-release.fd3036520101-linux.x86_64-release/blender" id="sha1new=36d78362d3db95dc4f5be42c8190ca78d1a8c6d6">
<manifest-digest sha256new="AWBT5JWIEHW54AY6DF6LQ4JWGMV5EIXYOF2SGIDDPQU4B7G2GBUQ"/>
<archive href="https://download.blender.org/release/Blender2.83/blender-2.83.15-linux-x64.tar.xz" type="application/x-xz-compressed-tar" size="136233988"/>
</implementation>
<implementation arch="Linux-x86_64" version="2.83.16" released="2021-06-16" stability="stable" main="blender-2.83.16-stable+blender-v2-83-release.051567553d29-linux.x86_64-release/blender" id="sha1new=951a84dfa223a440216d788139909c356c56da6b">
<manifest-digest sha256new="K6LKAD4PI4M4EC453WK2YZEZNR4DMXX5SL4S4YJROIMOJ3EAC3EQ"/>
<archive href="https://download.blender.org/release/Blender2.83/blender-2.83.16-linux-x64.tar.xz" type="application/x-xz-compressed-tar" size="143727888"/>
</implementation>
<implementation arch="Linux-x86_64" version="2.83.17" released="2021-08-11" stability="stable" main="blender-2.83.17-stable+blender-v2-83-release.430262b133a4-linux.x86_64-release/blender" id="sha1new=e729fb8bb7dc56943da20b1566f6a3f0f1200920">
<manifest-digest sha256new="6LWEAHDVIUL7TBVB6NTOQXX2MFHP5XX6UTRLHIO5ELTY3YZSI6PQ"/>
<archive href="https://download.blender.org/release/Blender2.83/blender-2.83.17-linux-x64.tar.xz" type="application/x-xz-compressed-tar" size="143718972"/>
</implementation>
<implementation arch="Linux-x86_64" version="2.93.0" released="2021-06-02" stability="stable" main="blender-2.93.0-stable+blender-v2-93-release.ddb2d7143899-linux.x86_64-release/blender" id="sha1new=f832e6d7334fb62a1cbcc3b41dcf04e456bcf0d1">
<manifest-digest sha256new="5X27TX4JMD3UBUPPJDZUCQIMALZBOX2FQLT6QASXII4KJFW72EHA"/>
<archive href="https://download.blender.org/release/Blender2.93/blender-2.93.0-linux-x64.tar.xz" type="application/x-xz-compressed-tar" size="155802244"/>
</implementation>
</group>
</interface>
4 changes: 2 additions & 2 deletions gui/blender-linux.xml.template
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
<group license="GPL v2 (GNU General Public License)">
<command name="run" path="blender"/>

<implementation arch="Linux-x86_64" version="{version}" released="{released}" stability="{stability}">
<implementation arch="Linux-x86_64" version="{version}" released="{released}" stability="stable">
<manifest-digest/>
<archive extract="blender-{version-full}-linux64" href="https://download.blender.org/release/Blender{version-main}/blender-{version-full}-linux64.tar.xz" type="application/x-xz-compressed-tar"/>
<archive extract="blender-{version}-linux-x64" href="https://download.blender.org/release/Blender{minor-version}/blender-{version}-linux-x64.tar.xz" type="application/x-xz-compressed-tar"/>
</implementation>
</group>
</interface>
33 changes: 4 additions & 29 deletions gui/blender-macos.watch.py
Original file line number Diff line number Diff line change
@@ -1,31 +1,6 @@
#os=Darwin
from urllib import request
import re
from datetime import datetime
import sys, os
sys.path.insert(0, os.path.abspath(os.path.dirname(__file__)))
import blender

def regex(url, pattern):
return re.findall(pattern, request.urlopen(url).read().decode('utf-8'))

def to_zi_version(input):
suffix = ''
if input.endswith('-alpha'):
input = input.replace('-alpha', '')
suffix = '-pre-pre'
if input.endswith('-beta'):
input = input.replace('-beta', '')
suffix = '-pre'
if not input[-1].isdigit():
input = input[:-1] + '-' + str(ord(input[-1]) - 96)
return input + suffix

releases = []

for version_main in regex('https://download.blender.org/release/', r'>Blender([\d\.a-z]+)\/<\/a>'):
for match in regex('https://download.blender.org/release/Blender' + version_main + '/', r'>blender-([\d\.\-a-z]+)-macos-x64\.dmg<\/a>\s+(..-...-....)'):
releases.append({
'version': to_zi_version(match[0].replace('-release', '').replace('rc', '-rc')),
'version-main': version_main,
'version-full': match[0],
'stability': 'testing' if 'alpha' in match[0] or 'beta' in match[0] or 'rc' in match[0] else 'stable',
'released': datetime.strftime(datetime.strptime(match[1], '%d-%b-%Y'), '%Y-%m-%d')
})
releases = blender.releases('macos-x64.dmg')
36 changes: 36 additions & 0 deletions gui/blender-macos.xml
Original file line number Diff line number Diff line change
Expand Up @@ -252,5 +252,41 @@
<manifest-digest sha256new="PQYTVRNECU66LJGBPPMZB5ORMJ3X4YU6QDX52G4DAIGDBIY3JGRA"/>
<archive href="https://download.blender.org/release/Blender2.83/blender-2.83.13-macOS.dmg" type="application/x-apple-diskimage" size="205065865"/>
</implementation>
<implementation arch="MacOSX-x86_64" version="2.83.14" released="2021-05-12" stability="stable" id="sha1new=9873788a199566a4ca37d1be4512f8d5555ca02c">
<manifest-digest sha256new="CBIFF7SPG22W24JGYB5PBAS5EOUDL5GNGK3LLZKDQ7TM4VVPSK3Q"/>
<archive href="https://download.blender.org/release/Blender2.83/blender-2.83.14-macos-x64.dmg" type="application/x-apple-diskimage" size="173913767"/>
</implementation>
<implementation arch="MacOSX-x86_64" version="2.83.15" released="2021-05-20" stability="stable" id="sha1new=fcbf900499263515da834bbf34e026979678a084">
<manifest-digest sha256new="DKXCWKFA6LITQJW4QAQRTUJUOB72BYVXGR545ZKET7FTUHFBQLIQ"/>
<archive href="https://download.blender.org/release/Blender2.83/blender-2.83.15-macos-x64.dmg" type="application/x-apple-diskimage" size="173913701"/>
</implementation>
<implementation arch="MacOSX-x86_64" version="2.83.16" released="2021-06-16" stability="stable" id="sha1new=a0a342ef55f8dfbf04d6666f8b884c875f0dfa50">
<manifest-digest sha256new="GAFA5GQLAT7ISHWAFXTJSJ6Z53DXGLFYFBKHDX2Y2LNCOKQOCCZQ"/>
<archive href="https://download.blender.org/release/Blender2.83/blender-2.83.16-macos-x64.dmg" type="application/x-apple-diskimage" size="175187321"/>
</implementation>
<implementation arch="MacOSX-x86_64" version="2.83.17" released="2021-08-11" stability="stable" id="sha1new=153d6e56dd0a5f9d6999d406aed5da6d377e2310">
<manifest-digest sha256new="JA6NPJ4P4JBS6HKTUDC6GOFKIPNKJPVPJ3J46QY65YXWHEKQ4SAA"/>
<archive href="https://download.blender.org/release/Blender2.83/blender-2.83.17-macos-x64.dmg" type="application/x-apple-diskimage" size="174900708"/>
</implementation>
<implementation arch="MacOSX-x86_64" version="2.93.0" released="2021-06-02" stability="stable" id="sha1new=d0c499c721307f29d2a54cee19114ab1fc1aa009">
<manifest-digest sha256new="KBZRONTXQXT3XDIQTYDK3EA37HFP6A4WVDVC6NWMU6CEXV7RW7HA"/>
<archive href="https://download.blender.org/release/Blender2.93/blender-2.93.0-macos-x64.dmg" type="application/x-apple-diskimage" size="202214912"/>
</implementation>
<implementation arch="MacOSX-x86_64" version="2.93.1" released="2021-06-23" stability="stable" id="sha1new=06bb2f94f809490f86f0b1565b4b11a3f9419496">
<manifest-digest sha256new="F3GJ5M4CYCMJIMZ2TSWNK6HXAN2ET3LVLSFMDV2BK6IXEKXYSVWQ"/>
<archive href="https://download.blender.org/release/Blender2.93/blender-2.93.1-macos-x64.dmg" type="application/x-apple-diskimage" size="202220081"/>
</implementation>
<implementation arch="MacOSX-x86_64" version="2.93.2" released="2021-08-04" stability="stable" id="sha1new=320cd61051a98285c9dc22bd332b394c6a67d10f">
<manifest-digest sha256new="4Q6E45CJQMSHHFF3DHOTHSCZMY7YDROFQFYLYA56BYK5GSBOZPUA"/>
<archive href="https://download.blender.org/release/Blender2.93/blender-2.93.2-macos-x64.dmg" type="application/x-apple-diskimage" size="202280314"/>
</implementation>
<implementation arch="MacOSX-x86_64" version="2.93.3" released="2021-08-18" stability="stable" id="sha1new=c993744e296eed9d32989904e8925d470766e67b">
<manifest-digest sha256new="I6C5RNEEZMJPUMPOGOS5EHC4NET7FUYSCIF2SO4AZDEDLZ7UUFWQ"/>
<archive href="https://download.blender.org/release/Blender2.93/blender-2.93.3-macos-x64.dmg" type="application/x-apple-diskimage" size="202283448"/>
</implementation>
<implementation arch="MacOSX-x86_64" version="2.93.4" released="2021-09-01" stability="stable" id="sha1new=6426aa91df28cdfa6fd3d6980856c3c26515f9c8">
<manifest-digest sha256new="CJ4UBM3X6QYWIS3WNSCRP54MAXMICSKI7PWBI6GMUK23K25JVUWQ"/>
<archive href="https://download.blender.org/release/Blender2.93/blender-2.93.4-macos-x64.dmg" type="application/x-apple-diskimage" size="202268182"/>
</implementation>
</group>
</interface>
4 changes: 2 additions & 2 deletions gui/blender-macos.xml.template
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
<group license="GPL v2 (GNU General Public License)">
<command name="run" path="Blender.app/Contents/MacOS/blender"/>

<implementation arch="MacOSX-x86_64" version="{version}" released="{released}" stability="{stability}">
<implementation arch="MacOSX-x86_64" version="{version}" released="{released}" stability="stable">
<manifest-digest/>
<archive href="https://download.blender.org/release/Blender{version-main}/blender-{version-full}-macOS.dmg" type="application/x-apple-diskimage"/>
<archive href="https://download.blender.org/release/Blender{minor-version}/blender-{version}-macos-x64.dmg" type="application/x-apple-diskimage"/>
</implementation>
</group>
</interface>
33 changes: 4 additions & 29 deletions gui/blender-windows.watch.py
Original file line number Diff line number Diff line change
@@ -1,31 +1,6 @@
#os=Windows
from urllib import request
import re
from datetime import datetime
import sys, os
sys.path.insert(0, os.path.abspath(os.path.dirname(__file__)))
import blender

def regex(url, pattern):
return re.findall(pattern, request.urlopen(url).read().decode('utf-8'))

def to_zi_version(input):
suffix = ''
if input.endswith('-alpha'):
input = input.replace('-alpha', '')
suffix = '-pre-pre'
if input.endswith('-beta'):
input = input.replace('-beta', '')
suffix = '-pre'
if not input[-1].isdigit():
input = input[:-1] + '-' + str(ord(input[-1]) - 96)
return input + suffix

releases = []

for version_main in regex('https://download.blender.org/release/', r'>Blender([\d\.a-z]+)\/<\/a>'):
for match in regex('https://download.blender.org/release/Blender' + version_main + '/', r'>blender-([\d\.\-a-z]+)-windows-x64\.zip<\/a>\s+(..-...-....)'):
releases.append({
'version': to_zi_version(match[0].replace('-release', '').replace('rc', '-rc')),
'version-main': version_main,
'version-full': match[0],
'stability': 'testing' if 'alpha' in match[0] or 'beta' in match[0] or 'rc' in match[0] else 'stable',
'released': datetime.strftime(datetime.strptime(match[1], '%d-%b-%Y'), '%Y-%m-%d')
})
releases = blender.releases('windows-x64.zip')
4 changes: 4 additions & 0 deletions gui/blender-windows.xml
Original file line number Diff line number Diff line change
Expand Up @@ -568,5 +568,9 @@
<manifest-digest sha256new="O5E6DFYVVIZQRHPBIKKJ2VV6OVGJTP7TBQB5D2JIK5TH7VFGD72A"/>
<archive href="https://download.blender.org/release/Blender2.83/blender-2.83.13-windows64.zip" size="166634929" type="application/zip" extract="blender-2.83.13-windows64"/>
</implementation>
<implementation arch="Windows-x86_64" version="2.83.14" released="2021-05-12" stability="stable" id="sha1new=cbd11ef015e984950a994f45dd9ffa095f7ab4ba">
<manifest-digest sha256new="MHJ2GHANP76WRNXZIIUGWL6NY2G3H7ZWZ7H3WWLPVFAP5YRX2YWA"/>
<archive href="https://download.blender.org/release/Blender2.83/blender-2.83.14-windows-x64.zip" size="145610434" type="application/zip" extract="blender-2.83.14-stable+blender-v2-83-release.759fd9e4c204-windows.amd64-release"/>
</implementation>
</group>
</interface>
4 changes: 2 additions & 2 deletions gui/blender-windows.xml.template
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
<group license="GPL v2 (GNU General Public License)">
<command name="run" path="blender.exe"/>

<implementation arch="Windows-x86_64" version="{version}" released="{released}" stability="{stability}">
<implementation arch="Windows-x86_64" version="{version}" released="{released}" stability="stable">
<manifest-digest/>
<archive extract="blender-{version-full}-windows64" href="https://download.blender.org/release/Blender{version-main}/blender-{version-full}-windows64.zip" type="application/zip"/>
<archive extract="blender-{version}-windows-x64" href="https://download.blender.org/release/Blender{minor-version}/blender-{version}-windows-x64.zip" type="application/zip"/>
</implementation>
</group>
</interface>
15 changes: 15 additions & 0 deletions gui/blender.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
from urllib import request
import re
from datetime import datetime

def regex(url, pattern):
return re.findall(pattern, request.urlopen(url).read().decode('utf-8'))

def releases(suffix):
for minor_version in regex('https://download.blender.org/release/', r'>Blender([\d\.a-z]+)\/<\/a>'):
for match in regex('https://download.blender.org/release/Blender' + minor_version + '/', r'>blender-([\d\.\-a-z]+)-' + re.escape(suffix) + '<\/a>\s+(..-...-....)'):
yield {
'version': match[0],
'minor-version': minor_version,
'released': datetime.strftime(datetime.strptime(match[1], '%d-%b-%Y'), '%Y-%m-%d')
}

0 comments on commit 5565209

Please sign in to comment.