Skip to content

Commit 693014e

Browse files
authored
Merge pull request #45 from fenix-hub/v0.8.7
V0.8.7
2 parents 463c81f + 62df832 commit 693014e

File tree

16 files changed

+235
-143
lines changed

16 files changed

+235
-143
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![version](https://img.shields.io/badge/plugin%20version-0.8.4-blue)](https://github.com/fenix-hub/godot-engine.github-integration)
1+
[![version](https://img.shields.io/badge/plugin%20version-0.8.7-blue)](https://github.com/fenix-hub/godot-engine.github-integration)
22
[![updates](https://img.shields.io/badge/plugin%20updates-on%20discord-purple)](https://discord.gg/JNrcucg)
33
[![paypal](https://img.shields.io/badge/donations-PayPal-cyan)](https://paypal.me/NSantilio?locale.x=it_IT)
44

@@ -11,7 +11,7 @@ This plugin is now supported in [Godot Extended Library Discord](https://discord
1111
A complete GitHub integration for your Godot Editor! Manage your project without even opening your browser.
1212

1313
Author: *"Nicolo (fenix) Santilio"*
14-
Version: *0.8.4*
14+
Version: *0.8.7*
1515
Wiki: *[supported](https://github.com/fenix-hub/godot-engine.github-integration/wiki)*
1616
Godot Version: *3.2stable*
1717

1.4 KB
Binary file not shown.
1.47 KB
Binary file not shown.
Binary file not shown.

addons/github-integration/plugin.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
name="GitHub integration"
44
description="Plugin to integrate GitHub requests directly via Godot Engine Editor"
55
author="Nicolo (fenix) Santilio"
6-
version="0.8.4"
6+
version="0.8.7"
77
script="scripts/github-integration.gd"
Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
import glob,zipfile,shutil,os,sys,tarfile
2-
3-
archive = sys.argv[1]
4-
destination = sys.argv[2]
5-
6-
if archive.endswith('.zip'):
7-
with zipfile.ZipFile(archive) as zip:
8-
for zip_info in zip.infolist():
9-
if zip_info.filename == zip.infolist()[0].filename :
10-
continue
11-
zip_info.filename = zip_info.filename.replace(zip.infolist()[0].filename,'')
12-
zip_info.filename.replace(zip.infolist()[0].filename,'')
13-
elif archive.endswith('.tar.gz'):
14-
tar = tarfile.open(archive)
15-
for member in tar.getmembers():
16-
if member.name == tar.getmembers()[0].name:
17-
continue
18-
member.name = member.name.replace(tar.getmembers()[0].name+'/','')
19-
tar.extract(member, destination)
1+
import glob,zipfile,shutil,os,sys,tarfile
2+
3+
archive = sys.argv[1]
4+
destination = sys.argv[2]
5+
6+
if archive.endswith('.zip'):
7+
with zipfile.ZipFile(archive) as zip:
8+
for zip_info in zip.infolist():
9+
if zip_info.filename == zip.infolist()[0].filename :
10+
continue
11+
zip_info.filename = zip_info.filename.replace(zip.infolist()[0].filename,'')
12+
zip_info.filename.replace(zip.infolist()[0].filename,'')
13+
elif archive.endswith('.tar.gz'):
14+
tar = tarfile.open(archive)
15+
for member in tar.getmembers():
16+
if member.name == tar.getmembers()[0].name:
17+
continue
18+
member.name = member.name.replace(tar.getmembers()[0].name+'/','')
19+
tar.extract(member, destination)

addons/github-integration/resources/loading/throbber.png.import

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ flags/srgb=2
2727
process/fix_alpha_border=true
2828
process/premult_alpha=false
2929
process/HDR_as_SRGB=false
30-
process/invert_color=false
30+
process/invert_color=true
3131
stream=false
3232
size_limit=0
3333
detect_3d=true

addons/github-integration/scenes/GitHub.tscn

Lines changed: 153 additions & 114 deletions
Large diffs are not rendered by default.

addons/github-integration/scripts/Commit.gd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,8 +345,8 @@ func request_blobs():
345345
## for readable files
346346
var f : File = File.new()
347347
f.open(file,File.READ)
348-
content = f.get_as_text()
349-
encoding = "utf-8"
348+
content = Marshalls.raw_to_base64(f.get_buffer(f.get_len()))
349+
encoding = "base64"
350350
f.close()
351351

352352

addons/github-integration/scripts/Gist.gd

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,9 @@ func on_commit():
234234
requesting = REQUESTS.UP_GISTS
235235
request.request("https://api.github.com/gists/"+gistid,UserData.header,false,HTTPClient.METHOD_PATCH,JSON.print(body))
236236
get_parent().print_debug_message("updating this gist...")
237+
get_parent().loading(true)
237238
yield(self,"gist_updated")
239+
get_parent().loading(false)
238240
close_editor()
239241

240242
func _on_Readonly_toggled(button_pressed):

0 commit comments

Comments
 (0)