Skip to content

Commit a1b4035

Browse files
Stable update to 1.6.4
feat: building process now using github actions for full transparency fix: #38 bump: idna to 3.7
2 parents 2523bff + 9251fce commit a1b4035

27 files changed

+1746
-1875
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

+38-38
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,38 @@
1-
---
2-
name: Bug report
3-
about: Create a bug report to help me solve the issue.
4-
title: "[BUG] "
5-
labels: bug, enhancement
6-
assignees: Official-Husko
7-
8-
---
9-
10-
**Describe the bug**
11-
A clear and concise description of what the bug is.
12-
13-
**To Reproduce**
14-
Steps to reproduce the behavior:
15-
1. Go to '...'
16-
2. Click on '....'
17-
3. Scroll down to '....'
18-
4. See error
19-
20-
**Expected behavior**
21-
A clear and concise description of what you expected to happen.
22-
23-
**Screenshots**
24-
If applicable, add screenshots to help explain your problem.
25-
26-
**Desktop (please complete the following information):**
27-
- OS: [e.g. Windows]
28-
- Version [e.g. 10]
29-
30-
**Used Parameters and Settings (please complete the following information):**
31-
- Site: [e.g. e621]
32-
- Tool Version: [e.g. ]
33-
- Tags/Link: [e.g. wolf female sfw]
34-
35-
**Additional context**
36-
Add any other context about the problem here.
37-
38-
### ***Please attach the runtime.log***
1+
---
2+
name: Bug report
3+
about: Create a bug report to help me solve the issue.
4+
title: "[BUG] "
5+
labels: bug, enhancement
6+
assignees: Official-Husko
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**To Reproduce**
14+
Steps to reproduce the behavior:
15+
1. Go to '...'
16+
2. Click on '....'
17+
3. Scroll down to '....'
18+
4. See error
19+
20+
**Expected behavior**
21+
A clear and concise description of what you expected to happen.
22+
23+
**Screenshots**
24+
If applicable, add screenshots to help explain your problem.
25+
26+
**Desktop (please complete the following information):**
27+
- OS: [e.g. Windows]
28+
- Version [e.g. 10]
29+
30+
**Used Parameters and Settings (please complete the following information):**
31+
- Site: [e.g. e621]
32+
- Tool Version: [e.g. ]
33+
- Tags/Link: [e.g. wolf female sfw]
34+
35+
**Additional context**
36+
Add any other context about the problem here.
37+
38+
### ***Please attach the runtime.log***
+26-26
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
1-
---
2-
name: Feature request
3-
about: Suggest an idea for this project
4-
title: "[REQUEST] "
5-
labels: enhancement
6-
assignees: Official-Husko
7-
8-
---
9-
10-
**Is your feature request related to a problem? Please describe.**
11-
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12-
13-
**Describe the solution you'd like**
14-
A clear and concise description of what you want to happen.
15-
16-
**Describe alternatives you've considered**
17-
A clear and concise description of any alternative solutions or features you've considered.
18-
19-
**Additional context**
20-
Add any other context or screenshots about the feature request here.
21-
22-
**Site URL**
23-
Add the site URL here if this is a site request.
24-
25-
**Does the site have an API?**
26-
If the site has an API please put the link here. If unknown write it.
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: "[REQUEST] "
5+
labels: enhancement
6+
assignees: Official-Husko
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.
21+
22+
**Site URL**
23+
Add the site URL here if this is a site request.
24+
25+
**Does the site have an API?**
26+
If the site has an API please put the link here. If unknown write it.

.github/workflows/build_windows.yml

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Build Windows Executable
2+
3+
on:
4+
push:
5+
branches:
6+
- dev # Adjust branch name as needed
7+
8+
jobs:
9+
build:
10+
runs-on: windows-latest
11+
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v4
15+
16+
- name: Set up Python
17+
uses: actions/setup-python@v5
18+
with:
19+
python-version: 3.12.4 # Specify the Python version you need
20+
21+
- name: Create virtual environment and build
22+
shell: bash
23+
run: |
24+
python -m venv .env
25+
source .env/Scripts/activate
26+
python -m pip install --upgrade pip
27+
pip install pyinstaller
28+
pip install -r requirements.txt # Replace with your requirements file if exists
29+
30+
pyinstaller --paths .env/Lib/site-packages \
31+
--hidden-import requests \
32+
--hidden-import inquirer \
33+
--hidden-import alive_progress \
34+
--hidden-import termcolor \
35+
--hidden-import xmltodict \
36+
--add-data=".env/Lib/site-packages/grapheme/data/*;grapheme/data/" \
37+
--onefile \
38+
--icon "icon.ico" \
39+
--console \
40+
--name "NN-Downloader" \
41+
main.py
42+
43+
- name: Upload artifact
44+
uses: actions/upload-artifact@v4
45+
with:
46+
name: nn-downloader-windows
47+
path: dist/NN-Downloader.exe # Adjust the path to your executable relative to the root of the repository

.gitignore

+7-14
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,7 @@
1-
config.json
2-
__pycache__/
3-
*.spec
4-
dist/
5-
build/
6-
media/
7-
.env/
8-
testing_accounts.txt
9-
old_config.json
10-
db/
11-
outdated
12-
runtime.log
13-
config.json.dev
14-
Build Release.bat
1+
/.env/
2+
/media/
3+
/db/
4+
config.json
5+
config.json.dev
6+
old_config.json
7+
testing_accounts.txt

.vscode/launch.json

+15-15
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
{
2-
// Use IntelliSense to learn about possible attributes.
3-
// Hover to view descriptions of existing attributes.
4-
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5-
"version": "0.2.0",
6-
"configurations": [
7-
{
8-
"name": "Python: Current File",
9-
"type": "python",
10-
"request": "launch",
11-
"program": "${workspaceFolder}\\main.py",
12-
"console": "integratedTerminal",
13-
"justMyCode": true
14-
}
15-
]
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"name": "Python: Current File",
9+
"type": "python",
10+
"request": "launch",
11+
"program": "${workspaceFolder}/main.py",
12+
"console": "integratedTerminal",
13+
"justMyCode": true
14+
}
15+
]
1616
}

0 commit comments

Comments
 (0)