diff --git a/README.md b/README.md index 9d5f4bb..ea80064 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# LDownloader v3.2.0 🎬🎵 +# LDownloader v3.3.0 🎬🎵 [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE) [![GitHub Release](https://img.shields.io/github/v/release/LilDosto/LDownloader)](https://github.com/LilDosto/LDownloader/releases) @@ -97,14 +97,24 @@ python main.py --- -## 🛠️ Tek Tıkla EXE Olarak Derleme +## 📦 İndirme ve Kurulum -Uygulamayı tek bir Windows `.exe` dosyası haline getirmek için: -* `build_exe.bat` dosyasına çift tıklayın veya terminalden çalıştırın: -```bash -pyinstaller --noconfirm ytdlp_indirici.spec -``` -Oluşturulan taşınabilir dosya `dist/LDownloader.exe` konumunda yer alacaktır. +LDownloader'ı iki farklı şekilde kullanabilirsiniz: + +1. **Kurulum Sihirbazı (Önerilen - `LDownloader-Setup.exe`):** + * Standart bir Windows programı gibi adım adım kurulur. + * Masaüstüne ve Başlat Menüsüne otomatik kısayol oluşturur. + * Windows Ayarları -> Yüklü Uygulamalar (Program Ekle/Kaldır) üzerinden güvenle kaldırılabilir. +2. **Taşınabilir Sürüm (Portable - `LDownloader.exe`):** + * Kurulum gerektirmeden indirip doğrudan çift tıklayarak çalıştırabilirsiniz. + +--- + +## 🛠️ Tek Tıkla EXE ve Kurulum Sihirbazı Derleme + +Uygulamayı ve kurulum sihirbazını yerel olarak derlemek için: +* `build_exe.bat` dosyasına çift tıklayın veya çalıştırın: +* Derleme sonucunda `dist/` klasöründe hem taşınabilir `LDownloader.exe` hem de `LDownloader-v3.3.0-Setup.exe` üretilecektir. --- diff --git a/build_exe.bat b/build_exe.bat index 97024f7..648e3ac 100644 --- a/build_exe.bat +++ b/build_exe.bat @@ -1,7 +1,7 @@ @echo off chcp 65001 >nul echo =================================================== -echo LDownloader v3 - Windows EXE Derleme Araci +echo LDownloader v3.3.0 - Windows EXE & Kurulum Sihirbazi echo =================================================== echo. @@ -17,4 +17,20 @@ if %ERRORLEVEL% NEQ 0 ( echo. if exist build rmdir /s /q build echo [BASARILI] dist\LDownloader.exe basariyla olusturuldu! + +set "ISCC_PATH=%LOCALAPPDATA%\Programs\Inno Setup 6\ISCC.exe" +if not exist "%ISCC_PATH%" set "ISCC_PATH=C:\Program Files (x86)\Inno Setup 6\ISCC.exe" +if not exist "%ISCC_PATH%" set "ISCC_PATH=C:\Program Files\Inno Setup 6\ISCC.exe" + +if exist "%ISCC_PATH%" ( + echo. + echo Kurulum Sihirbazi (Setup.exe) derleniyor... + "%ISCC_PATH%" installer.iss + if %ERRORLEVEL% EQU 0 ( + echo [BASARILI] Kurulum dosyasi dist\LDownloader-v3.3.0-Setup.exe olusturuldu! + ) +) + +echo. +echo Islem tamamlandi! pause diff --git a/installer.iss b/installer.iss new file mode 100644 index 0000000..7e5e9f9 --- /dev/null +++ b/installer.iss @@ -0,0 +1,48 @@ +; Inno Setup Kurulum Senaryosu - LDownloader +#define MyAppName "LDownloader" +#define MyAppVersion "3.3.0" +#define MyAppPublisher "LilDosto" +#define MyAppURL "https://github.com/LilDosto/LDownloader" +#define MyAppExeName "LDownloader.exe" + +[Setup] +; Benzersiz Uygulama Kimligi (GUID) +AppId={{5E4B4C3E-91C0-46EA-B882-9BE8B85BD14B} +AppName={#MyAppName} +AppVersion={#MyAppVersion} +AppPublisher={#MyAppPublisher} +AppPublisherURL={#MyAppURL} +AppSupportURL={#MyAppURL} +AppUpdatesURL={#MyAppURL}/releases +DefaultDirName={autopf}\{#MyAppName} +DisableProgramGroupPage=yes +LicenseFile=LICENSE +; Yonetici yetkisi zorunlulugu olmadan sorunsuz kurulum +PrivilegesRequired=lowest +PrivilegesRequiredOverridesAllowed=dialog +OutputDir=dist +OutputBaseFilename=LDownloader-v{#MyAppVersion}-Setup +SetupIconFile=assets\logo.ico +UninstallDisplayIcon={app}\{#MyAppExeName} +Compression=lzma2/ultra64 +SolidCompression=yes +WizardStyle=modern + +[Languages] +Name: "turkish"; MessagesFile: "compiler:Languages\Turkish.isl" +Name: "english"; MessagesFile: "compiler:Default.isl" + +[Tasks] +Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}" + +[Files] +Source: "dist\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion +Source: "assets\logo.ico"; DestDir: "{app}\assets"; Flags: ignoreversion +Source: "LICENSE"; DestDir: "{app}"; Flags: ignoreversion + +[Icons] +Name: "{autoprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; IconFilename: "{app}\{#MyAppExeName}" +Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; IconFilename: "{app}\{#MyAppExeName}"; Tasks: desktopicon + +[Run] +Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent diff --git a/ui/app.py b/ui/app.py index 8520221..b2095e7 100644 --- a/ui/app.py +++ b/ui/app.py @@ -27,7 +27,7 @@ from core.dependencies import get_ytdlp_status, get_ffmpeg_status, get_js_status class LDownloaderApp(tk.Tk): def __init__(self): super().__init__() - self.title("LDownloader v3.2.0") + self.title("LDownloader v3.3.0") self.geometry("980x660") self.minsize(880, 580) self.configure(bg=BG) @@ -110,7 +110,7 @@ class LDownloaderApp(tk.Tk): if self.logo_img: tk.Label(brand_frame, image=self.logo_img, bg=TAB_BG).pack(side="left", padx=(0, 8)) - tk.Label(brand_frame, text="LDownloader v3.2.0", font=FONT_TITLE, bg=TAB_BG, fg=TEXT).pack(side="left") + tk.Label(brand_frame, text="LDownloader v3.3.0", font=FONT_TITLE, bg=TAB_BG, fg=TEXT).pack(side="left") # Orta: Sekmeler self.nav_buttons = {}