# PortCtrler **Repository Path**: minnnng/port-ctrler ## Basic Information - **Project Name**: PortCtrler - **Description**: 适用于Windows的 快速 开启、关闭、删除 防火墙端口规则工具。 - **Primary Language**: Python - **License**: GPL-3.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-01-17 - **Last Updated**: 2025-01-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## **Firewall Port Rule Manager for Windows** ## **快速管理 Windows 防火墙端口规则** *便捷实现防火墙端口规则的批量开启、关闭与删除* *Streamline the management of firewall port rules: open, close, and delete with ease* --- ### **开发环境 | Development Environment** - 基于 **Python 3.9.13 (64-bit)** 开发编译 - Developed and compiled using **Python 3.9.13 (64-bit)** --- ### **打包命令 | Packaging Command** ```bash pyinstaller --onefile --exclude-module tkinter --icon=01.ico --name=PostCtrler main.py ``` - **说明 | Note**: 使用 PyInstaller 将 Python 脚本打包为单个可执行文件。 Use PyInstaller to package the Python script into a single executable file. --- ### **UPX 压缩命令 | UPX Compression Command** ```bash upx --best --lzma --force PostCtrler.exe ``` - **说明 | Note**: 使用 UPX 对打包后的可执行文件进行高效压缩,减少文件体积。 Use UPX to compress the packaged executable for reduced file size. ---