prioritize nonrectangular screenshot map boundaries
This commit is contained in:
@@ -12,7 +12,7 @@ export async function startPortableEditor({port=4488,open=true}={}) {
|
||||
}
|
||||
if(process.argv[1]&&pathToFileURL(path.resolve(process.argv[1])).href===import.meta.url){
|
||||
startPortableEditor({open:!process.argv.includes('--no-open')}).then(app=>{
|
||||
console.log('ColorBlock Editor 0.15.0 - macOS portable');
|
||||
console.log('ColorBlock Editor 0.19.0 - macOS portable');
|
||||
console.log('Open this address if the browser did not open: '+app.url);
|
||||
console.log('Keep this window open while editing. Close it to stop the editor.');
|
||||
}).catch(error=>{console.error(error.message);process.exitCode=1;});
|
||||
|
||||
@@ -7,7 +7,7 @@ spec=importlib.util.spec_from_file_location('windows_packager',ROOT/'scripts/pac
|
||||
common=importlib.util.module_from_spec(spec);spec.loader.exec_module(common)
|
||||
VERSION='22.23.3'
|
||||
HASHES={'arm64':'23b25245dcfb9af7262f8ff142e9e2e0af025368117329e7a7458a51e5922f53','x64':'8a677b0219178efd6eb0e475457c4afb452b521a92f6e67845a73bd85727f2a8'}
|
||||
NAME='ColorBlockEditor-Mac-0.18.0-20261019'
|
||||
NAME='ColorBlockEditor-Mac-0.19.0-20261019'
|
||||
def sha(data):return hashlib.sha256(data).hexdigest()
|
||||
def put(root,rel,data,mode=0o644):
|
||||
p=root/rel;p.parent.mkdir(parents=True,exist_ok=True);p.write_bytes(data);p.chmod(mode)
|
||||
|
||||
@@ -6,7 +6,7 @@ ROOT=Path(__file__).resolve().parents[1]
|
||||
NODE_VERSION='22.23.3'
|
||||
ZIP_SHA='2b0ff57b049cda1bbcea2240eec20467018713c1efe1f7360c2681859b90ed71'
|
||||
EXE_SHA='9c9245166b4a8e182e0b797da9c20136117ff24368eaff1fec8343a123c8db0e'
|
||||
NAME='ColorBlockEditor-Windows-x64-0.18.0-20261019'
|
||||
NAME='ColorBlockEditor-Windows-x64-0.19.0-20261019'
|
||||
def sha(data):return hashlib.sha256(data).hexdigest()
|
||||
def put(target,relative,data):
|
||||
p=target/relative;p.parent.mkdir(parents=True,exist_ok=True);p.write_bytes(data)
|
||||
@@ -61,7 +61,7 @@ def build(node_zip,game,out):
|
||||
for p in sorted(target.rglob('*')):
|
||||
if p.is_file():
|
||||
data=p.read_bytes();files.append({'path':p.relative_to(target).as_posix(),'bytes':len(data),'sha256':sha(data)})
|
||||
manifest={'editor':'0.18.0','generator':'0.21.0','checker':'1.1.3','date':'2026-10-16','runtime':runtime,'levelCounts':counts,'excluded':['personal settings','draft samples','Git','caches','test outputs','project conversation history','full Cocos project'],'files':files}
|
||||
manifest={'editor':'0.19.0','generator':'0.21.0','checker':'1.1.3','date':'2026-10-16','runtime':runtime,'levelCounts':counts,'excluded':['personal settings','draft samples','Git','caches','test outputs','project conversation history','full Cocos project'],'files':files}
|
||||
put(target,'PACKAGE_MANIFEST.json',(json.dumps(manifest,ensure_ascii=False,indent=2)+'\n').encode())
|
||||
with zipfile.ZipFile(archive,'x',zipfile.ZIP_DEFLATED,compresslevel=6) as z:
|
||||
for p in sorted(target.rglob('*')):
|
||||
|
||||
@@ -12,7 +12,7 @@ export async function startPortableEditor({port=4488,open=true}={}) {
|
||||
}
|
||||
if(process.argv[1]&&pathToFileURL(path.resolve(process.argv[1])).href===import.meta.url){
|
||||
startPortableEditor().then(app=>{
|
||||
console.log('ColorBlock Editor 0.15.0 - Windows portable');
|
||||
console.log('ColorBlock Editor 0.19.0 - Windows portable');
|
||||
console.log('Open this address if the browser did not open: '+app.url);
|
||||
console.log('Keep this window open while editing. Close it to stop the editor.');
|
||||
}).catch(error=>{console.error(error.message);process.exitCode=1;});
|
||||
|
||||
Reference in New Issue
Block a user