From e42817976a224c34dfdc81835da9fb28f2c640dd Mon Sep 17 00:00:00 2001 From: jade Date: Thu, 20 Jun 2024 09:31:07 +0000 Subject: [PATCH] =?UTF-8?q?*=20=20=E6=9B=B4=E6=96=B0=E6=B5=81=E5=AA=92?= =?UTF-8?q?=E4=BD=93=E6=9C=8D=E5=8A=A1V1.4.4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/python-release.yml | 129 +++++++++++++++++++++++++++ README.md | 11 ++- 2 files changed, 138 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/python-release.yml diff --git a/.github/workflows/python-release.yml b/.github/workflows/python-release.yml new file mode 100644 index 0000000..52e93c9 --- /dev/null +++ b/.github/workflows/python-release.yml @@ -0,0 +1,129 @@ +name: 流媒体服务 + +on: + push: + tags: + - StreamServerV* + +jobs: + release: + name: ${{ matrix.os }} 创建Release + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: [ "ubuntu-latest" ] #, "macos-latest", "windows-latest" + steps: + - name: 克隆代码 + uses: actions/checkout@v3 + - name: 创建发行版本 + continue-on-error: true + id: create_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token + with: + tag_name: ${{ github.ref }} + release_name: ${{ github.ref }} + body_path: README.md + draft: false + prerelease: false + Windows: + name: 打包发布-操作系统版本:(${{ matrix.os }},Python版本:${{ matrix.python-version }}) + runs-on: ${{ matrix.os }} + permissions: + contents: read + security-events: write + pull-requests: write + strategy: + fail-fast: false + matrix: + os: ["windows-latest"] + python-version: ["3.8"] + steps: + - name: 下载代码 + uses: actions/checkout@v3 + with: + repository: jadehh/StreamServer + ref: StreamServer + path: code + token: ${{ secrets.GH_PAT }} + - name: 准备Python环境 + uses: actions/setup-python@v3 + with: + python-version: ${{ matrix.python-version }} + architecture: x64 + - name: pip升级 + shell: pwsh + run: | + python -m pip install --upgrade pip + - name: 准备打包环境 + shell: pwsh + run: | + pip install -r code/requirements.txt + + - name: Windows操作系统安装Inno Setup 下载 + if: runner.os == 'Windows' + uses: actions/checkout@v3 + with: + repository: jadehh/InnoSetup + path: InnoSetup + - name: 编译打包 + env: + PYTHONIOENCODING: "utf-8" + shell: pwsh + run: | + cd code + python packing.py # --specify_files samplesMain.py + + # 发布 + - name: 发布 + uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') + with: + files: + "./code/Output/*" + env: + GITHUB_TOKEN: ${{ secrets.GH_PAT }} # 给最高的权限 + Ubuntu: + name: 打包发布-操作系统版本:(${{ matrix.os }}) + runs-on: ${{ matrix.os }} + container: + image: jadehh/container_ocr:amd64-packing-1.0.2 + options: --privileged + strategy: + fail-fast: false + matrix: + os: [ "ubuntu-latest" ] # "ubuntu-18.04", "windows-latest","macos-latest" + steps: + - name: 下载代码 + uses: actions/checkout@v3 + with: + repository: jadehh/StreamServer + ref: StreamServer + path: code + token: ${{ secrets.GH_PAT }} + - name: 准备打包环境 + run: | + pip install -r code/requirements.txt + apt-get install -y libmediainfo-dev + apt-get install -y wget + apt-get install -y libgl1-mesa-glx + apt-get install -y libfuse2 + apt-get install -y libsm6 libxrender1 libfontconfig1 + wget https://github.com/AppImage/AppImageKit/releases/download/13/appimagetool-x86_64.AppImage + mv appimagetool-x86_64.AppImage ~/ + chmod a+x ~/appimagetool-x86_64.AppImage + - name: 编译打包 + run: | + cd code + python packing.py # --specify_files samplesMain.py + # 发布 + - name: 发布 + uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') + with: + files: + "./code/Output/*" + env: + GITHUB_TOKEN: ${{ secrets.GH_PAT }} # 给最高的权限 \ No newline at end of file diff --git a/README.md b/README.md index 8a40a2b..55cd31b 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,9 @@ -# jadehh_file -文件托管 +# StreamServer +## StreamServerV1.4.4 - 2024-06-20 09:31:07 +StreamServerV1.4.4 +* [发布地址](https://github.com/jadehh/StreamServer/releases/tag/V1.4.4) +* [详细地址](https://github.com/jadehh/jadehh_file/releases/tag/StreamServerV1.4.4) +### 下载地址 +* [StreamServer_setup-V1.4-4.exe](https://gh.ddlc.top/https://github.com/jadehh/jadehh_file/releases/download/StreamServerV1.4.4/StreamServer_setup-V1.4-4.exe) +* [StreamServer-Linux-V1.4-4.zip](https://gh.ddlc.top/https://github.com/jadehh/jadehh_file/releases/download/StreamServerV1.4.4/StreamServer-Linux-V1.4-4.zip) +---- \ No newline at end of file