mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-11 10:54:08 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
eb7c9ad7f2 | ||
|
|
ea11fc38f1 | ||
|
|
1be16e9f2c | ||
|
|
1d86d14a20 | ||
|
|
5ad15cc4ac |
No files matched your search
@@ -51,7 +51,7 @@ jobs:
|
|||||||
Invoke-WebRequest -Uri "https://github.com/jrsoftware/issrc/raw/main/Files/Languages/Unofficial/ChineseSimplified.isl" -OutFile "ChineseSimplified.isl"
|
Invoke-WebRequest -Uri "https://github.com/jrsoftware/issrc/raw/main/Files/Languages/Unofficial/ChineseSimplified.isl" -OutFile "ChineseSimplified.isl"
|
||||||
mv ChineseSimplified.isl "C:\Program Files (x86)\Inno Setup 6\Languages\"
|
mv ChineseSimplified.isl "C:\Program Files (x86)\Inno Setup 6\Languages\"
|
||||||
|
|
||||||
go build -tags nosqlite -ldflags="-w -s -X github.com/GopeedLab/gopeed/pkg/base.Version=$VERSION" -buildmode=c-shared -o ui/flutter/windows/libgopeed.dll github.com/GopeedLab/gopeed/bind/desktop
|
go build -tags nosqlite -ldflags="-w -s -X github.com/GopeedLab/gopeed/pkg/base.Version=$env:VERSION" -buildmode=c-shared -o ui/flutter/windows/libgopeed.dll github.com/GopeedLab/gopeed/bind/desktop
|
||||||
cd ui/flutter
|
cd ui/flutter
|
||||||
$TAG = "v$env:VERSION"
|
$TAG = "v$env:VERSION"
|
||||||
flutter build windows
|
flutter build windows
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ const idID = {
|
|||||||
'create': 'Membuat Tugas',
|
'create': 'Membuat Tugas',
|
||||||
'directDownload': 'Unduhan Langsung',
|
'directDownload': 'Unduhan Langsung',
|
||||||
'advancedOptions': 'Pengaturan Lanjutan',
|
'advancedOptions': 'Pengaturan Lanjutan',
|
||||||
|
'followSettings': 'Mengikuti Pengaturan',
|
||||||
'downloadLink': 'Tautan Unduhan',
|
'downloadLink': 'Tautan Unduhan',
|
||||||
'downloadLinkValid': 'Silakan masukkan tautan unduhan',
|
'downloadLinkValid': 'Silakan masukkan tautan unduhan',
|
||||||
'downloadLinkHit':
|
'downloadLinkHit':
|
||||||
@@ -35,6 +36,7 @@ const idID = {
|
|||||||
'connections': 'Koneksi',
|
'connections': 'Koneksi',
|
||||||
'useServerCtime': 'Gunakan waktu server untuk pembuatan file',
|
'useServerCtime': 'Gunakan waktu server untuk pembuatan file',
|
||||||
'maxRunning': 'Tugas Maksimum yang Berjalan',
|
'maxRunning': 'Tugas Maksimum yang Berjalan',
|
||||||
|
'defaultDirectDownload': 'Pilih unduhan langsung sebagai opsi standar',
|
||||||
'items': '@count items',
|
'items': '@count items',
|
||||||
'subscribeTracker': 'Berlangganan Tracker',
|
'subscribeTracker': 'Berlangganan Tracker',
|
||||||
'subscribeFail':
|
'subscribeFail':
|
||||||
@@ -60,6 +62,8 @@ const idID = {
|
|||||||
'set': 'ATUR',
|
'set': 'ATUR',
|
||||||
'portInUse': 'Port [@port] sedang digunakan, silakan ubah port',
|
'portInUse': 'Port [@port] sedang digunakan, silakan ubah port',
|
||||||
'effectAfterRestart': 'Berlaku setelah restart',
|
'effectAfterRestart': 'Berlaku setelah restart',
|
||||||
|
'developer': 'Pengembang',
|
||||||
|
'logDirectory': 'Direktori Log',
|
||||||
'show': 'Tampilkan',
|
'show': 'Tampilkan',
|
||||||
'startAll': 'Mulai Semua',
|
'startAll': 'Mulai Semua',
|
||||||
'pauseAll': 'Jeda Semua',
|
'pauseAll': 'Jeda Semua',
|
||||||
@@ -95,5 +99,13 @@ const idID = {
|
|||||||
'Terima kasih kepada semua kontributor yang telah membantu membangun dan mengembangkan komunitas Gopeed!',
|
'Terima kasih kepada semua kontributor yang telah membantu membangun dan mengembangkan komunitas Gopeed!',
|
||||||
'browserExtension': 'Ekstensi Perambanan',
|
'browserExtension': 'Ekstensi Perambanan',
|
||||||
'launchAtStartup': 'Luncurkan saat Startup',
|
'launchAtStartup': 'Luncurkan saat Startup',
|
||||||
|
'seedConfig': 'Konfigurasi Seed',
|
||||||
|
'seedKeep': 'Terus seeding hingga dihentikan secara manual',
|
||||||
|
'seedRatio': 'Rasio Seed',
|
||||||
|
'seedTime': 'Waktu Seed (menit)',
|
||||||
|
'taskDetail': 'Detail Tugas',
|
||||||
|
'taskName': 'Nama Tugas',
|
||||||
|
'taskUrl': 'URL Tugas',
|
||||||
|
'downloadPath': 'Direktori Unduhan',
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
@@ -17,10 +17,10 @@ const trTR = {
|
|||||||
'create': 'Görev oluştur',
|
'create': 'Görev oluştur',
|
||||||
'directDownload': 'Doğrudan indir',
|
'directDownload': 'Doğrudan indir',
|
||||||
'advancedOptions': 'Gelişmiş ayarlar',
|
'advancedOptions': 'Gelişmiş ayarlar',
|
||||||
|
'followSettings': 'Ayarları takip et',
|
||||||
'downloadLink': 'İndirme bağlantısı',
|
'downloadLink': 'İndirme bağlantısı',
|
||||||
'downloadLinkValid': 'Lütfen indirme bağlantısını girin',
|
'downloadLinkValid': 'Lütfen indirme bağlantısını girin',
|
||||||
'downloadLinkHit':
|
'downloadLinkHit': 'Lütfen indirme bağlantısını girin, HTTP/HTTPS/MAGNET desteklenir@append',
|
||||||
'Lütfen indirme bağlantısını girin, HTTP/HTTPS/MAGNET desteklenir@append',
|
|
||||||
'downloadLinkHitDesktop': ', veya torrent dosyasını doğrudan buraya sürükleyin',
|
'downloadLinkHitDesktop': ', veya torrent dosyasını doğrudan buraya sürükleyin',
|
||||||
'download': 'İndir',
|
'download': 'İndir',
|
||||||
'noFileSelected': 'Devam etmek için lütfen en az bir dosya seçin.',
|
'noFileSelected': 'Devam etmek için lütfen en az bir dosya seçin.',
|
||||||
@@ -35,10 +35,10 @@ const trTR = {
|
|||||||
'connections': 'Bağlantılar',
|
'connections': 'Bağlantılar',
|
||||||
'useServerCtime': 'Dosya oluşturma için sunucu saatini kullan',
|
'useServerCtime': 'Dosya oluşturma için sunucu saatini kullan',
|
||||||
'maxRunning': 'Maksimum çalışan görev sayısı',
|
'maxRunning': 'Maksimum çalışan görev sayısı',
|
||||||
|
'defaultDirectDownload': 'Doğrudan indir seçili olsun',
|
||||||
'items': '@count tane',
|
'items': '@count tane',
|
||||||
'subscribeTracker': 'İzleyiciye abone ol',
|
'subscribeTracker': 'İzleyiciye abone ol',
|
||||||
'subscribeFail':
|
'subscribeFail': 'Abone olunamadı, lütfen ağı kontrol edin veya daha sonra tekrar deneyin',
|
||||||
'Abone olunamadı, lütfen ağı kontrol edin veya daha sonra tekrar deneyin',
|
|
||||||
'update': 'Güncelle',
|
'update': 'Güncelle',
|
||||||
'updateDaily': 'Günlük olarak güncelle',
|
'updateDaily': 'Günlük olarak güncelle',
|
||||||
'lastUpdate': 'Son güncellenme tarihi: @time',
|
'lastUpdate': 'Son güncellenme tarihi: @time',
|
||||||
@@ -60,6 +60,8 @@ const trTR = {
|
|||||||
'set': 'AYARLI',
|
'set': 'AYARLI',
|
||||||
'portInUse': 'Bağlantı noktası [@port] kullanımda, lütfen bağlantı noktasını değiştirin',
|
'portInUse': 'Bağlantı noktası [@port] kullanımda, lütfen bağlantı noktasını değiştirin',
|
||||||
'effectAfterRestart': 'Yeniden başlatma sonrası etki edecektir',
|
'effectAfterRestart': 'Yeniden başlatma sonrası etki edecektir',
|
||||||
|
'developer': 'Geliştirici',
|
||||||
|
'logDirectory': 'Kayıt dizini',
|
||||||
'show': 'Göster',
|
'show': 'Göster',
|
||||||
'startAll': 'Hepsini başlat',
|
'startAll': 'Hepsini başlat',
|
||||||
'pauseAll': 'Hepsini durdur',
|
'pauseAll': 'Hepsini durdur',
|
||||||
@@ -91,9 +93,16 @@ const trTR = {
|
|||||||
'username': 'Kullanıcı adı',
|
'username': 'Kullanıcı adı',
|
||||||
'password': 'Şifre',
|
'password': 'Şifre',
|
||||||
'thanks': 'Teşekkürler',
|
'thanks': 'Teşekkürler',
|
||||||
'thanksDesc':
|
'thanksDesc': 'Gopeed topluluğunun oluşmasına ve gelişmesine yardımcı olan tüm katılımcılara teşekkürler!',
|
||||||
'Gopeed topluluğunun oluşmasına ve gelişmesine yardımcı olan tüm katılımcılara teşekkürler!',
|
|
||||||
'browserExtension': 'Tarayıcı uzantısı',
|
'browserExtension': 'Tarayıcı uzantısı',
|
||||||
'launchAtStartup': 'Başlangıçta başlat',
|
'launchAtStartup': 'Başlangıçta başlat',
|
||||||
|
'seedConfig': 'Seed ayarları',
|
||||||
|
'seedKeep': 'Manuel durdurulana kadar seed etmeye devam et',
|
||||||
|
'seedRatio': 'Seed oranı',
|
||||||
|
'seedTime': 'Seed süresi (dakika)',
|
||||||
|
'taskDetail': 'Görev detayı',
|
||||||
|
'taskName': 'Görev adı',
|
||||||
|
'taskUrl': 'Görev URL',
|
||||||
|
'downloadPath': 'İndirme yolu',
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
@@ -21,29 +21,33 @@ class FileExplorer {
|
|||||||
} else if (Platform.isMacOS) {
|
} else if (Platform.isMacOS) {
|
||||||
Process.run('open', ['-R', filePath]);
|
Process.run('open', ['-R', filePath]);
|
||||||
} else if (Platform.isLinux) {
|
} else if (Platform.isLinux) {
|
||||||
if (await _isUbuntuOrDebian()) {
|
_linuxOpen(filePath);
|
||||||
Process.run('xdg-open', [filePath]);
|
}
|
||||||
} else if (await _isCentOS()) {
|
}
|
||||||
Process.run('nautilus', ['--select', filePath]);
|
|
||||||
|
static Future<void> _linuxOpen(String filePath) async {
|
||||||
|
if (await Process.run('which', ['xdg-open'])
|
||||||
|
.then((value) => value.exitCode == 0)) {
|
||||||
|
final result = await Process.run('xdg-open', [filePath]);
|
||||||
|
if (result.exitCode != 0) {
|
||||||
|
_openWithFileManager(filePath);
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
_openWithFileManager(filePath);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static Future<bool> _isUbuntuOrDebian() async {
|
static Future<void> _openWithFileManager(String filePath) async {
|
||||||
final result = await Process.run('lsb_release', ['-i']);
|
final desktop = Platform.environment['XDG_CURRENT_DESKTOP'];
|
||||||
if (result.exitCode != 0) {
|
if (desktop == null) {
|
||||||
return false;
|
throw Exception('XDG_CURRENT_DESKTOP is not set');
|
||||||
}
|
}
|
||||||
final output = result.stdout.toString().toLowerCase();
|
if (desktop == 'GNOME') {
|
||||||
return output.contains('ubuntu') || output.contains('debian');
|
await Process.run('nautilus', ['--select', filePath]);
|
||||||
}
|
} else if (desktop == 'KDE') {
|
||||||
|
await Process.run('dolphin', ['--select', filePath]);
|
||||||
static Future<bool> _isCentOS() async {
|
} else {
|
||||||
final result = await Process.run('cat', ['/etc/os-release']);
|
throw Exception('Unsupported desktop environment');
|
||||||
if (result.exitCode != 0) {
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
final output = result.stdout.toString().toLowerCase();
|
|
||||||
return output.contains('centos');
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -15,7 +15,7 @@ publish_to: "none" # Remove this line if you wish to publish to pub.dev
|
|||||||
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
|
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
|
||||||
# Read more about iOS versioning at
|
# Read more about iOS versioning at
|
||||||
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
|
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
|
||||||
version: 1.6.0+1
|
version: 1.6.1+1
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: '>=3.0.0 <4.0.0'
|
sdk: '>=3.0.0 <4.0.0'
|
||||||
|
|||||||
Reference in new issue
Block a user