Skip to content
Merged

sync #19

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/dev_package_and_upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,6 @@ jobs:
name: Artifact
path: |
./dist/*.exe
retention-days: 90
retention-days: 14
if-no-files-found: warn
overwrite: true
1 change: 1 addition & 0 deletions .github/workflows/nuitka_package_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,5 +84,6 @@ jobs:
generate_release_notes: true
draft: false
prerelease: false
overwrite_files: true
files: |
dist/*.exe
3 changes: 2 additions & 1 deletion .github/workflows/pyinstaller_package_and_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ jobs:
generate_release_notes: true
draft: false
prerelease: false
overwrite_files: true
files: |
dist/*.exe

Expand All @@ -83,4 +84,4 @@ jobs:
# file: "./dist/*.exe"
# release_id: ${{ steps.create_release.outputs.id }}
# verbose: false
# overwrite: true
# overwrite: true
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -198,4 +198,5 @@ cython_debug/
.temp
temp/
.vscode/
.idea/
.idea/
**/*.bak
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,19 @@

**禁止任何人将代码用于违法行为**

[![Auto Package and Release](https://github.com/God-2077/python-code/actions/workflows/auto_package_and_release.yml/badge.svg)](https://github.com/God-2077/python-code/actions/workflows/auto_package_and_release.yml)[![Dev Package and Upload(dev)](https://github.com/God-2077/python-code/actions/workflows/dev_package_and_upload.yml/badge.svg?branch=dev)](https://github.com/God-2077/python-code/actions/workflows/dev_package_and_upload.yml)
[![Nuitka Package and Release](https://github.com/God-2077/python-code/actions/workflows/nuitka_package_release.yml/badge.svg)](https://github.com/God-2077/python-code/actions/workflows/nuitka_package_release.yml)
[![Nuitka Package and Upload(dev)](https://github.com/God-2077/python-code/actions/workflows/dev_package_and_upload.yml/badge.svg)](https://github.com/God-2077/python-code/actions/workflows/dev_package_and_upload.yml)

## [网易云音乐歌单批量下载歌曲][1]

最新版:[v.24-10-06][2]
使用 metting api 批量下载网易云音乐歌曲

注意,这程序严重依赖第三方的 metting api


## [键盘监听][4]

最新版:[v.24.07.16][5]
键盘监听


## [psql_terminal][7]
Expand Down
12 changes: 9 additions & 3 deletions package/nuitka_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
import argparse
from pathlib import Path
# from zip import zip_files_and_folders
import uuid
import shutil

def main():
print("="*50)
Expand Down Expand Up @@ -92,7 +94,7 @@ def main():
'--mingw64',
# '--mode',
'--assume-yes-for-downloads', #自动下载外部代码
'--show-memory'
# '--show-memory'

]

Expand Down Expand Up @@ -120,8 +122,12 @@ def main():
# print(f"警告: UPX目录不存在 {upx_dir}")
# else:
# print("不使用UPX压缩")

# 添加主Python文件
cmd.append(str(python_file))
t_file = str(uuid.uuid4()) + ".py"
t_file_path = base_dir / t_file
shutil.copy(str(python_file), t_file_path)
cmd.append(str(t_file_path))

# 打印并执行命令
print("执行命令:", ' '.join(cmd))
Expand All @@ -137,7 +143,7 @@ def main():
result = subprocess.run(cmd)

if result.returncode == 0:
print(f"(onefile)打包成功: {dist_path / output_name}")
print(f"打包成功: {dist_path / output_name}")
success_count += 1
else:
print(f"打包失败,退出码: {result.returncode}")
Expand Down
14 changes: 7 additions & 7 deletions package/nuitka_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
icon:
windows-disable-console: False
distpath: 'dist'
timeout: 1200
timeout: 2700
output-name-template: '{{name}}_{{version}}_nuitka_{{os}}_{{arch}}'

- name: 'Keyboard_monitoring'
Expand All @@ -29,12 +29,12 @@
icon:
windows-disable-console: False
distpath: 'dist'
timeout: 1200
timeout: 2700
output-name-template: '{{name}}_{{version}}_nuitka_{{os}}_{{arch}}'

- name: 'NetEase_Cloud_Music_Download'
version: 'v.24-10-06'
python-file: '网易云音乐歌单批量下载歌曲\v.24-10-06.py'
version: 'v.25-07-08'
python-file: '网易云音乐歌单批量下载歌曲\v.25-07-08.py'
install-requirements: [
'quote',
'requests',
Expand All @@ -46,7 +46,7 @@
icon:
windows-disable-console: False
distpath: 'dist'
timeout: 1200
timeout: 2700
output-name-template: '{{name}}_{{version}}_nuitka_{{os}}_{{arch}}'

- name: 'ftp_server'
Expand All @@ -60,7 +60,7 @@
icon:
windows-disable-console: False
distpath: 'dist'
timeout: 1200
timeout: 2700
output-name-template: '{{name}}_{{version}}_nuitka_{{os}}_{{arch}}'

- name: 'sunrise_sunset_info'
Expand All @@ -74,5 +74,5 @@
icon:
windows-disable-console: False
distpath: 'dist'
timeout: 1200
timeout: 2700
output-name-template: '{{name}}_{{version}}_nuitka_{{os}}_{{arch}}'
8 changes: 6 additions & 2 deletions 网易云音乐歌单批量下载歌曲/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

注意,这程序严重依赖第三方的 metting api

最新版:[v.24-10-06][7]
最新版:[v.25-07-08][8]

## 说明

Expand All @@ -24,6 +24,9 @@ python ***.py

## 日志

- [v.25-07-08][8]
- 删去 `#!/usr/bin/python` 指令

- [v.24-10-06][7]
- 小优化
- 添加了是否下载小于60秒音乐的选项
Expand Down Expand Up @@ -60,4 +63,5 @@ python ***.py
[4]: https://github.com/God-2077/python-code/blob/main/%E7%BD%91%E6%98%93%E4%BA%91%E9%9F%B3%E4%B9%90%E6%AD%8C%E5%8D%95%E6%89%B9%E9%87%8F%E4%B8%8B%E8%BD%BD%E6%AD%8C%E6%9B%B2/v.24-04-05.%E6%9C%80%E7%BB%88%E7%89%88.py
[5]: https://github.com/God-2077/python-code/blob/main/%E7%BD%91%E6%98%93%E4%BA%91%E9%9F%B3%E4%B9%90%E6%AD%8C%E5%8D%95%E6%89%B9%E9%87%8F%E4%B8%8B%E8%BD%BD%E6%AD%8C%E6%9B%B2/v.24-07-18.py
[6]: https://github.com/God-2077/python-code/blob/main/%E7%BD%91%E6%98%93%E4%BA%91%E9%9F%B3%E4%B9%90%E6%AD%8C%E5%8D%95%E6%89%B9%E9%87%8F%E4%B8%8B%E8%BD%BD%E6%AD%8C%E6%9B%B2/v.24-07-19.py
[7]: https://github.com/God-2077/python-code/blob/main/%E7%BD%91%E6%98%93%E4%BA%91%E9%9F%B3%E4%B9%90%E6%AD%8C%E5%8D%95%E6%89%B9%E9%87%8F%E4%B8%8B%E8%BD%BD%E6%AD%8C%E6%9B%B2/v.24-10-06.py
[7]: https://github.com/God-2077/python-code/blob/main/%E7%BD%91%E6%98%93%E4%BA%91%E9%9F%B3%E4%B9%90%E6%AD%8C%E5%8D%95%E6%89%B9%E9%87%8F%E4%B8%8B%E8%BD%BD%E6%AD%8C%E6%9B%B2/v.24-10-06.py
[8]: v.24-10-06.py
Loading
Loading