Skip to content

Commit 0571631

Browse files
committed
fix cmd open in windows / fix screen size
1 parent b12098c commit 0571631

File tree

16 files changed

+84
-4
lines changed

16 files changed

+84
-4
lines changed

GUI-ver/src/AppDir/.DirIcon

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
icon.png

GUI-ver/src/AppDir/AppRun

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
HERE="$(dirname "$(readlink -f "${0}")")"
3+
exec "$HERE/usr/bin/xc"

GUI-ver/src/AppDir/icon.png

286 KB
Loading

GUI-ver/src/AppDir/usr/bin/xc

32.2 MB
Binary file not shown.

GUI-ver/src/AppDir/xc.desktop

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[Desktop Entry]
2+
Type=Application
3+
Name=xc
4+
Exec=xc
5+
Icon=icon
6+
Categories=Utility;

GUI-ver/src/appimagetool

2.07 MB
Binary file not shown.

GUI-ver/src/backend.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -698,10 +698,12 @@ def disable_gnome_proxy(self):
698698
def _get_xray_traffic(self, stat_name):
699699
"""Helper function to get traffic stats from Xray"""
700700
try:
701+
creation_flags = subprocess.CREATE_NO_WINDOW if self.os_sys == "win" else 0
701702
result = subprocess.run(
702703
[self.xray_path, "api", "stats", f"--server={self.server}", f"-name={stat_name}"],
703704
capture_output=True,
704-
text=True
705+
text=True,
706+
creationflags=creation_flags
705707
)
706708
if result.returncode == 0:
707709
data = json.loads(result.stdout)

GUI-ver/src/build_appimage.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash
2+
3+
# دریافت appimagetool در صورت نیاز
4+
if [ ! -f appimagetool ]; then
5+
wget https://github.com/AppImage/AppImageKit/releases/latest/download/appimagetool-x86_64.AppImage -O appimagetool
6+
chmod +x appimagetool
7+
fi
8+
9+
# ساخت AppImage
10+
./appimagetool AppDir

GUI-ver/src/const.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def os_det():
1616
OS_SYS = os_det()
1717

1818
XRAY_PATH=f"./core/{OS_SYS}/xray"
19-
APP_VERSION = "4.3-9"
19+
APP_VERSION = "4.3-10"
2020
ROOT = "./"
2121
CORE_PATH = "./core"
2222
SAVE_PATH = "./core.zip"

GUI-ver/src/icon.png

286 KB
Loading

0 commit comments

Comments
 (0)