Skip to main content

TapTap SCE小游戏自动发布工具

Project description

auto-publish

TapTap SCE小游戏自动发布工具,用于自动化发布和管理小游戏项目。

功能特点

  • 自动化处理游戏资源(图片、文件夹等)
  • 支持批量上传游戏文件
  • 自动将图片转换为 base64 编码
  • 支持自定义配置参数
  • 提供详细的错误处理和日志输出

使用方法

  1. 配置 minigame_config.json 文件,设置相关参数
  2. 将游戏资源文件放置在指定位置
  3. 运行主程序:
    python sce_minigame_publisher.py
    

命令行参数

# 使用默认配置文件 (minigame_config.json)
python sce_minigame_publisher.py

# 指定配置文件
python sce_minigame_publisher.py -c path/to/your/config.json

# 显示详细日志
python sce_minigame_publisher.py --verbose

# 自定义API URL
python sce_minigame_publisher.py --url http://your-api-url.com

# 自定义内容类型
python sce_minigame_publisher.py --content-type "application/json"

# 显示版本信息
python sce_minigame_publisher.py -v
参数 描述
-c, --config 配置文件路径 (默认: minigame_config.json)
-v, --version 显示版本信息
--verbose 显示详细日志
--url 自定义API URL (默认值已内置)
--content-type 内容类型 (默认: application/json)

配置文件说明

配置文件 minigame_config.json 包含以下主要部分:

{
    "token": "your-auth-token",
    "data": {
        "projectID": "your-project-id",
        "tapID": 123456,
        "title": "游戏标题",
        "outDirectory": "path/to/game/folder",
        "screenOrientation": "portrait or landscape",
        "description": "游戏描述",
        "tags": ["标签1", "标签2"],
        "versionName": "1.0.0",
        "banner": ["path/to/banner.png"],
        "icon": ["path/to/icon.png"],
        "screenshots": ["path/to/screenshot1.png", "path/to/screenshot2.png"]
    }
}

注意事项

  1. 确保所有图片文件都存在且格式正确
  2. 游戏资源文件夹中的文件将被自动转换为 base64 编码
  3. 请妥善保管 API token,不要泄露
  4. 认证令牌必须在配置文件中通过 token 字段设置,且只能包含ASCII字符
  5. 建议在发布前先进行测试

常见问题解决

如果您在发布过程中遇到问题,请检查:

  1. 配置文件是否正确
  2. token 是否有效,是否只包含ASCII字符
  3. 图片路径是否正确
  4. 游戏文件夹是否存在

依赖项

  • Python 3.6+
  • requests

许可证

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sce_minigame_publisher-0.1.1.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sce_minigame_publisher-0.1.1-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file sce_minigame_publisher-0.1.1.tar.gz.

File metadata

  • Download URL: sce_minigame_publisher-0.1.1.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for sce_minigame_publisher-0.1.1.tar.gz
Algorithm Hash digest
SHA256 d68fe6cab41edd8596441252b0e63b4c6fd28b4f1d69ba9121e56cb1f56ac06d
MD5 9f7ed012e62d1b3bfc4b3ee0b784b9b5
BLAKE2b-256 a0de56f3a274a3c519b486690ead29d380bdba8b65084b851c1d690f6df31e71

See more details on using hashes here.

File details

Details for the file sce_minigame_publisher-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for sce_minigame_publisher-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f58828336a099dbcd336ed1478c8560b65051ab6f468ed14cb43876b987f3a36
MD5 9303e0560b6c50d03c6b4c235acc07a5
BLAKE2b-256 100fc430b362b4aaa8540145c511be881cd5658da205a099c6adb36bfcc011b9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page