Skip to content

Commit

Permalink
Create Launcher
Browse files Browse the repository at this point in the history
Created
  • Loading branch information
Radium-bit committed Nov 14, 2023
0 parents commit 916bad4
Show file tree
Hide file tree
Showing 87 changed files with 123,670 additions and 0 deletions.
Binary file added AriaNg_Native.exe.7z
Binary file not shown.
21 changes: 21 additions & 0 deletions LICENSE.electron.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
Copyright (c) Electron contributors
Copyright (c) 2013-2020 GitHub Inc.

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
121,634 changes: 121,634 additions & 0 deletions LICENSES.chromium.html

Large diffs are not rendered by default.

Binary file added Launcher.exe
Binary file not shown.
75 changes: 75 additions & 0 deletions Launcher.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
# This license applies only to THIS FILE and files compiled from it.
# Copyright (c) 2023, Radium-bit
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# # Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# # Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# # Neither the name of the Radium-bit nor the
# names of its contributors may be used to endorse or promote products
# derived from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE RADIUM-BIT AND CONTRIBUTORS "AS IS" AND ANY
# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL THE RADIUM-BIT AND CONTRIBUTORS BE LIABLE FOR ANY
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.}}

import os
import re
import locale
from tkinter import messagebox
def Start():
language,_=locale.getdefaultlocale()
tsklist="tasklist"
callAria2=r"start .\aria2\aria2c.exe --conf=.\aria2\aria2.conf"
callAriaNG_Native=r"start .\AriaNg_Native.exe"
ProcessInfo=os.popen(tsklist).read()
if re.search("aria2",ProcessInfo)==None:
if re.search("AriaNg",ProcessInfo)==None:
try:
os.popen(callAria2)
os.popen(callAriaNG_Native)
# print("StartALL")
except Exception as e:
if language.startswith('zh'):
messagebox.showwarning("启动失败,请检查路径",{e})
else:
messagebox.showwarning("Startup failed, please check the path",{e})

else:
try:
os.popen(callAria2)
# print("StartCore")
except Exception as e:
if language.startswith('zh'):
messagebox.showwarning("启动失败,请检查路径", {e})
else:
messagebox.showwarning("Startup failed, please check the path",{e})
else:
if re.search("AriaNg",ProcessInfo)==None:
try:
os.popen(callAriaNG_Native)
# print("StartGUI")
except Exception as e:
if language.startswith('zh'):
messagebox.showwarning("启动失败,请检查路径", {e})
else:
messagebox.showwarning("Startup failed, please check the path",{e})
else:
# print("ALL HAS BEEN STARTED")
if language.startswith('zh'):
messagebox.showwarning("注意","已经在运行\n请勿重复运行!")
else:
messagebox.showwarning("Note", "Already running\nDo not run again!")

Start()
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Aria Launcher

The front-end interface of [Aria2NG-Native](https://github.com/mayswind/AriaNg-Native) and the [aria2c](https://aria2.github.io/) main program are integrated here to facilitate direct use by users. And Launcher written in Python.

* The configuration file is in ./aria2/aria2.conf

* The download directory is ./Downloads

* The log directory is ./Log

* Launcher written in Python

* Provide programs that can be run directly under Windows.

## Usage

Just run Launcher.exe or Launcher.py (Python3 required)

*Among them, start.py is distributed according to the BSD license, and other parts follow the original project license.*
69 changes: 69 additions & 0 deletions aria2/AUTHORS
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
These are people who made lots of contributions:

Tatsuhiro Tsujikawa <tatsuhiro.t at gmail dot com>
Ross Smith II <aria2spam at netebb dot com> (Windows port)
Nils Maier <maierman at web dot Germany>

The aria2 contributor's list extracted from commit logs [1]:

103yiran
Alexander Amanuel
Ali MJ Al-Nasrawy
Anthony Bryan
Artur Petrov
Athmane Madjoudj
Ben Chaney
Char
Cristian Rodríguez
Dan Fandrich
David Macek
Florian Gamböck
Fredrik Fornwall
ITriskTI
Igor Khomyakov
Jarda Snajdr
JimmyZ
Juan Francisco Cantero Hurtado
Kcchouette
Kurt Kartaltepe
Michał Górny
Michał Leśniewski
Mingye Wang
Natanael Copa
Nils Maier
ORiON-
ReadmeCritic
Rosen Penev
Ross Smith II
Ryan Steinmetz
Ryo ONODERA
Sarim Khan
Sergey Zolotarev
Sonny Piers
Sébastien Cabaniols
Tatsuhiro Tsujikawa
Torbjörn Lönnemark
Tse Kit Yam
Vasilij Schneidermann
Zoltan Toth-Czifra
amtlib-dot-dll
c3mb0
diadistis
eric1932
geetam
gilberto dos santos alves
gt
klemens
kwkam
luokar
mozillazg
multisnow
nicolov
oliviercommelarbre
qweaszxcdf
rotor
sleepymac
suzker
tcely

[1] https://gist.github.com/tatsuhiro-t/deaffeb064652104ad11
Loading

0 comments on commit 916bad4

Please sign in to comment.