forked from Hex-Dragon/PCL2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
861c73a
commit d87e5ac
Showing
3 changed files
with
43 additions
and
44 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,47 @@ | ||
name: Build | ||
on: | ||
push: | ||
paths: | ||
- 'Plain Craft Launcher 2/**' | ||
- '.github/workflows/**' | ||
pull_request: | ||
paths: | ||
- 'Plain Craft Launcher 2/**' | ||
- '.github/workflows/**' | ||
tags: | ||
- v** | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
runs-on: windows-latest | ||
strategy: | ||
matrix: | ||
configuration: [BETA] | ||
# strategy: | ||
# matrix: | ||
# configuration: [BETA] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Set Describe | ||
shell: bash | ||
run: | | ||
describe=`git describe --tags --always` | ||
echo "describe=$describe" >> $GITHUB_ENV | ||
# - name: Set Describe | ||
# shell: bash | ||
# run: | | ||
# describe=`git describe --tags --always` | ||
# echo "describe=$describe" >> $GITHUB_ENV | ||
- name: Setup MSBuild.exe | ||
uses: microsoft/setup-msbuild@v2 | ||
with: | ||
msbuild-architecture: x64 | ||
- name: Replace | ||
run: | | ||
(gc "Plain Craft Launcher 2\Modules\ModSecret.vb") -replace 'Public Const OAuthClientId As String = ""', 'Public Const OAuthClientId As String = "${{ secrets.CLIENT_ID }}"' | Out-File "Plain Craft Launcher 2\Modules\ModSecret.vb" | ||
(gc "Plain Craft Launcher 2\Modules\ModSecret.vb") -replace 'Public Const CurseForgeAPIKey As String = ""', 'Public Const CurseForgeAPIKey As String = "${{ secrets.CURSEFORGE_API_KEY }}"' | Out-File "Plain Craft Launcher 2\Modules\ModSecret.vb" | ||
(gc "Plain Craft Launcher 2\Modules\Base\ModBase.vb") -replace 'Public Const CommitHash As String = ""', 'Public Const CommitHash As String = "${{ github.sha }}"' | Out-File "Plain Craft Launcher 2\Modules\Base\ModBase.vb" | ||
rm "Plain Craft Launcher 2\Resources\Help.zip" | ||
aria2c "--out=Plain Craft Launcher 2\Resources\Help.zip" "https://codeload.github.com/LTCatt/PCL2Help/zip/refs/heads/master" | ||
7z x "Plain Craft Launcher 2\Resources\Help.zip" -o"Plain Craft Launcher 2\Resources" | ||
rm "Plain Craft Launcher 2\Resources\Help.zip" | ||
rm "Plain Craft Launcher 2\Resources\PCL2Help-master\*.*" | ||
7z a "Plain Craft Launcher 2\Resources\Help.zip" ".\Plain Craft Launcher 2\Resources\PCL2Help-master\*" | ||
rm "Plain Craft Launcher 2\Resources\PCL2Help-master\" -Recurse | ||
# - name: Replace | ||
# run: | | ||
# (gc "Plain Craft Launcher 2\Modules\ModSecret.vb") -replace 'Public Const OAuthClientId As String = ""', 'Public Const OAuthClientId As String = "${{ secrets.CLIENT_ID }}"' | Out-File "Plain Craft Launcher 2\Modules\ModSecret.vb" | ||
# (gc "Plain Craft Launcher 2\Modules\ModSecret.vb") -replace 'Public Const CurseForgeAPIKey As String = ""', 'Public Const CurseForgeAPIKey As String = "${{ secrets.CURSEFORGE_API_KEY }}"' | Out-File "Plain Craft Launcher 2\Modules\ModSecret.vb" | ||
# (gc "Plain Craft Launcher 2\Modules\Base\ModBase.vb") -replace 'Public Const CommitHash As String = ""', 'Public Const CommitHash As String = "${{ github.sha }}"' | Out-File "Plain Craft Launcher 2\Modules\Base\ModBase.vb" | ||
# rm "Plain Craft Launcher 2\Resources\Help.zip" | ||
# aria2c "--out=Plain Craft Launcher 2\Resources\Help.zip" "https://codeload.github.com/LTCatt/PCL2Help/zip/refs/heads/master" | ||
# 7z x "Plain Craft Launcher 2\Resources\Help.zip" -o"Plain Craft Launcher 2\Resources" | ||
# rm "Plain Craft Launcher 2\Resources\Help.zip" | ||
# rm "Plain Craft Launcher 2\Resources\PCL2Help-master\*.*" | ||
# 7z a "Plain Craft Launcher 2\Resources\Help.zip" ".\Plain Craft Launcher 2\Resources\PCL2Help-master\*" | ||
# rm "Plain Craft Launcher 2\Resources\PCL2Help-master\" -Recurse | ||
- name: Build | ||
run: msbuild "Plain Craft Launcher 2\Plain Craft Launcher 2.vbproj" -p:Configuration=${{ matrix.configuration }} | ||
run: msbuild "Plain Craft Launcher 2\Plain Craft Launcher 2.vbproj" -p:Configuration=BETA | ||
- name: Upload a Build Artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{ matrix.configuration }} ${{ env.describe }} | ||
path: Plain Craft Launcher 2\obj\${{ matrix.configuration }}\Plain Craft Launcher 2.exe | ||
name: ${{ github.ref }} | ||
path: Plain Craft Launcher 2\obj\BETA\Plain Craft Launcher 2.exe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,24 @@ | ||
# Plain Craft Launcher | ||
# PCL 所见即所得 | ||
|
||
[![Stars](https://img.shields.io/github/stars/Hex-Dragon/PCL2?style=flat&logo=data:image/svg%2bxml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEiIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHBhdGggZD0iTTggLjI1YS43NS43NSAwIDAgMSAuNjczLjQxOGwxLjg4MiAzLjgxNSA0LjIxLjYxMmEuNzUuNzUgMCAwIDEgLjQxNiAxLjI3OWwtMy4wNDYgMi45Ny43MTkgNC4xOTJhLjc1MS43NTEgMCAwIDEtMS4wODguNzkxTDggMTIuMzQ3bC0zLjc2NiAxLjk4YS43NS43NSAwIDAgMS0xLjA4OC0uNzlsLjcyLTQuMTk0TC44MTggNi4zNzRhLjc1Ljc1IDAgMCAxIC40MTYtMS4yOGw0LjIxLS42MTFMNy4zMjcuNjY4QS43NS43NSAwIDAgMSA4IC4yNVoiIGZpbGw9IiNlYWM1NGYiLz48L3N2Zz4=&logoSize=auto&label=Stars&labelColor=444444&color=eac54f)](https://github.com/Hex-Dragon/PCL2/) | ||
[![Issues](https://img.shields.io/github/issues/Hex-Dragon/PCL2?style=flat&label=Issues&labelColor=444444&color=1F883D)](https://github.com/Hex-Dragon/PCL2/issues) | ||
[![哔哩哔哩](https://img.shields.io/badge/动态-BiliBili-00A4DB?style=flat&labelColor=444444&logoSize=auto)](https://space.bilibili.com/11343203/dynamic) | ||
[![爱发电](https://img.shields.io/badge/赞助-爱发电-946ce6?style=flat&labelColor=444444&logoSize=auto)](https://afdian.com/@LTCat) | ||
[![Stars](https://img.shields.io/github/stars/PCL-Community/PCL2-WYSIWYG?style=flat&logo=data:image/svg%2bxml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEiIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHBhdGggZD0iTTggLjI1YS43NS43NSAwIDAgMSAuNjczLjQxOGwxLjg4MiAzLjgxNSA0LjIxLjYxMmEuNzUuNzUgMCAwIDEgLjQxNiAxLjI3OWwtMy4wNDYgMi45Ny43MTkgNC4xOTJhLjc1MS43NTEgMCAwIDEtMS4wODguNzkxTDggMTIuMzQ3bC0zLjc2NiAxLjk4YS43NS43NSAwIDAgMS0xLjA4OC0uNzlsLjcyLTQuMTk0TC44MTggNi4zNzRhLjc1Ljc1IDAgMCAxIC40MTYtMS4yOGw0LjIxLS42MTFMNy4zMjcuNjY4QS43NS43NSAwIDAgMSA4IC4yNVoiIGZpbGw9IiNlYWM1NGYiLz48L3N2Zz4=&logoSize=auto&label=Stars&labelColor=444444&color=eac54f)](https://github.com/PCL-Community/PCL2-WYSIWYG/) | ||
[![Issues](https://img.shields.io/github/issues/PCL-Community/PCL2-WYSIWYG?style=flat&label=Issues&labelColor=444444&color=1F883D)](https://github.com/PCL-Community/PCL2-WYSIWYG/issues) | ||
|
||
包含 PCL 的大部分源代码,包括 UI 库、动画模块、下载模块、Minecraft 启动模块等!<br/> | ||
代码并不是实时更新的,它会在每次 PCL 发布更新时同步一次。<br/> | ||
非常感谢社区的大力支持! | ||
你可能有一些开源洁癖:你不关心主题,也并不打算用一个启动器来优化内存,但你希望你使用的软件是开放源代码的,或者至少是源代码可见的。但同时,你又希望它能拥有较为完整的体验,并且不需要安装Java FX。</br> | ||
|
||
<br/> | ||
那么 PCL WYSIWYG 可能正是你要找的。 | ||
|
||
### 相关资源 | ||
### 特色 | ||
- 没有非公开代码的,完全可视化的构建过程 | ||
- 尽可能地去除了恼人的“此功能在此版本不可用”标识 | ||
- 从 PCL CE 抄来的更新程序,可以实现更新检查 | ||
- 默认启用的 SSL 证书验证 | ||
- 自力更生的微软登录和模组下载 | ||
- 编不下去了 | ||
|
||
### 下载 | ||
- [Releases](https://github.com/PCL-Community/PCL2-WYSIWYG) | ||
|
||
### 原版相关资源 | ||
- [PCL 下载](https://afdian.com/p/0164034c016c11ebafcb52540025c377):下载可免费使用的正式版 PCL! | ||
- [PCL 功能投票](https://github.com/Hex-Dragon/PCL2/discussions/2):来参加投票吧,开发者会优先处理票数较高的项目! | ||
- [PCL 功能投票](https://github.com/PCL-Community/PCL2-WYSIWYG/discussions/2):来参加投票吧,开发者会优先处理票数较高的项目! | ||
- [帮助文档库](https://github.com/LTCatt/PCL2Help):PCL 内置帮助文档的存储库 |