feat: add Inno Setup installer script and desktop shortcut support (v3.3.0)
This commit is contained in:
parent
5f2e452c6a
commit
658cc01640
4 changed files with 85 additions and 11 deletions
26
README.md
26
README.md
|
|
@ -1,4 +1,4 @@
|
|||
# LDownloader v3.2.0 🎬🎵
|
||||
# LDownloader v3.3.0 🎬🎵
|
||||
|
||||
[](LICENSE)
|
||||
[](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.
|
||||
|
||||
---
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
48
installer.iss
Normal file
48
installer.iss
Normal file
|
|
@ -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
|
||||
|
|
@ -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 = {}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue