Merge branch 'Hex-Dragon:main' into auth
This commit is contained in:
@@ -0,0 +1,47 @@
|
|||||||
|
name: Build
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- 'Plain Craft Launcher 2/**'
|
||||||
|
- '.github/workflows/**'
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- 'Plain Craft Launcher 2/**'
|
||||||
|
- '.github/workflows/**'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
|
||||||
|
build:
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
configuration: [Debug, Release, Snapshot, BETA, ReleaseUpdate]
|
||||||
|
|
||||||
|
runs-on: windows-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Set Describe
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
Describe=`git describe --tags`
|
||||||
|
echo "Describe=$Describe" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
- name: Setup MSBuild.exe
|
||||||
|
uses: microsoft/setup-msbuild@v2
|
||||||
|
with:
|
||||||
|
msbuild-architecture: x64
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: msbuild "Plain Craft Launcher 2\Plain Craft Launcher 2.vbproj" -p:Configuration=${{ matrix.configuration }}
|
||||||
|
|
||||||
|
- 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
|
||||||
@@ -1,57 +0,0 @@
|
|||||||
name: .NET Core Desktop
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
paths:
|
|
||||||
- 'Plain Craft Launcher 2.sln'
|
|
||||||
- 'Plain Craft Launcher 2/**'
|
|
||||||
- '.github/workflows/**'
|
|
||||||
pull_request:
|
|
||||||
paths:
|
|
||||||
- 'Plain Craft Launcher 2.sln'
|
|
||||||
- 'Plain Craft Launcher 2/**'
|
|
||||||
- '.github/workflows/**'
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
|
|
||||||
build:
|
|
||||||
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
configuration: [Beta, Debug, Release, ReleaseUpdate]
|
|
||||||
|
|
||||||
runs-on: windows-latest
|
|
||||||
|
|
||||||
env:
|
|
||||||
Solution_Name: Plain Craft Launcher 2.sln
|
|
||||||
Wap_Project_Directory: Plain Craft Launcher 2
|
|
||||||
Wap_Project_Path: Plain Craft Launcher 2\Plain Craft Launcher 2.vbproj
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
|
|
||||||
# Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild
|
|
||||||
- name: Setup MSBuild.exe
|
|
||||||
uses: microsoft/setup-msbuild@v2
|
|
||||||
|
|
||||||
# Restore the application to populate the obj folder with RuntimeIdentifiers
|
|
||||||
- name: Restore the application
|
|
||||||
run: msbuild $env:Solution_Name /t:Restore /p:Configuration=$env:Configuration
|
|
||||||
env:
|
|
||||||
Configuration: ${{ matrix.configuration }}
|
|
||||||
|
|
||||||
# Create the app package by building and packaging the Windows Application Packaging project
|
|
||||||
- name: Create the app package
|
|
||||||
run: msbuild $env:Wap_Project_Path /p:Configuration=$env:Configuration
|
|
||||||
env:
|
|
||||||
Configuration: ${{ matrix.configuration }}
|
|
||||||
|
|
||||||
# Upload the MSIX package: https://github.com/marketplace/actions/upload-a-build-artifact
|
|
||||||
- name: Upload build artifacts
|
|
||||||
uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: ${{ matrix.configuration }}
|
|
||||||
path: ${{ env.Wap_Project_Directory }}\obj\${{ matrix.configuration }}\Plain Craft Launcher 2.exe
|
|
||||||
@@ -1,21 +1,35 @@
|
|||||||
本文件仅作为指引您合理使用本存储库内容的指南,不是法律文件或协议。
|
本文件仅作为指引您合理使用本存储库内容的指南,不是法律文件或协议。
|
||||||
|
|
||||||
一、承诺。
|
一、承诺与声明。
|
||||||
开发者承诺,在您遵守本指南的情况下,不会追究您的法律责任,但是否遵守的最终裁量权由开发者保留。
|
|
||||||
二、若大量使用,则不能分发。
|
开发者承诺,在您遵守本指南的情况下,不会追究您的法律责任,但最终裁量权仍由开发者保留。
|
||||||
如果您再混合、转换、或者基于该存储库创作,除非满足第三款(少量使用),否则您不可以分发修改后的内容。
|
开发者仍保留所有权利(All Rights Reserved),且可能随时修改本指南,本指南并不是永久性保证。
|
||||||
三、可少量使用,但必须署名。
|
|
||||||
如果您仅使用了本存储库的少量内容或是实现思路,您必须给出适当的署名,且提供指向本存储库的链接。
|
二、少量使用情形。
|
||||||
您可以用任何合理的方式来署名,但是不得以任何方式暗示开发者为您或您的使用背书。
|
|
||||||
四、标注修改内容。
|
如果您仅合理使用本存储库中的少量内容,或是参考实现思路,您必须:
|
||||||
如果您要发布任何修改后的版本的衍生内容,您必须给出适当的说明,表示这不是官方版本。
|
(一)给出适当的署名,且提供指向本存储库的链接。
|
||||||
五、保留权利。
|
(二)不得以任何方式暗示开发者为您或您的使用作担保。
|
||||||
除上述表述外,开发者对本存储库保留所有权利(All Rights Reserved),且开发者可能随时修改本指南,上述表述均无法作出永久性保证。
|
|
||||||
|
三、大量使用情形。
|
||||||
|
|
||||||
|
如果您基于该存储库进行衍生创作,或合理使用了本存储库中的较大量内容,您必须:
|
||||||
|
(一)给出适当的署名,且提供指向本存储库的链接。
|
||||||
|
(二)不得以任何方式暗示开发者为您或您的使用作担保。
|
||||||
|
(三)给出适当的说明,表示这是第三方内容。
|
||||||
|
(四)使用本指南文件作为协议,不得附加额外条款。
|
||||||
|
(五)不得分发编译后的可执行文件。
|
||||||
|
|
||||||
————————————
|
————————————
|
||||||
|
|
||||||
说人话版本:
|
说人话的备注:
|
||||||
|
|
||||||
因为没有法律专业人士检查,所以这不敢作为正式的法律协议,如果有专业人士愿意帮忙改一改我也很乐意……
|
因为没有法律专业人士检查,所以这不敢作为正式的法律协议,如果有专业人士愿意帮忙改一改我也很乐意……
|
||||||
如果你只是想参考一下,或者使用一小部分代码,署个名就行,不必担心。
|
这些规则主要是为了阻止恶意的使用和 “山寨版” 的出现,常规、善意的使用都没啥问题的,放心吧!
|
||||||
如果你整了个魔改版,你不能把它发给其他人,但可以私下使用;如果要用魔改版来录视频、发图片什么的,你必须标注这是魔改版,不是官方版本。
|
|
||||||
这个指南主要是为了阻止恶意的使用和 “山寨版” 的出现,常规、善意的使用都问题不大,放心吧……
|
如果你只是想参考一下,或者用了一小部分代码:
|
||||||
|
署名就行啦。
|
||||||
|
如果你整了个魔改版,或者用了一大堆代码:
|
||||||
|
你不能把编译后的文件发给其他人,但可以私下使用。
|
||||||
|
如果你修改了代码,并且打算公开:
|
||||||
|
请仔细参考上面的第三条。
|
||||||
|
|||||||
@@ -1063,7 +1063,7 @@ LoginFinish:
|
|||||||
'自定义
|
'自定义
|
||||||
Do Until McSkinSex(Uuid) = If(Setup.Get("LaunchSkinSlim"), "Alex", "Steve")
|
Do Until McSkinSex(Uuid) = If(Setup.Get("LaunchSkinSlim"), "Alex", "Steve")
|
||||||
If Uuid.EndsWithF("FFFFF") Then Uuid = Mid(Uuid, 1, 32 - 5) & "00000"
|
If Uuid.EndsWithF("FFFFF") Then Uuid = Mid(Uuid, 1, 32 - 5) & "00000"
|
||||||
Uuid = Mid(Uuid, 1, 32 - 5) & (Long.Parse(Right(Uuid, 5), Globalization.NumberStyles.AllowHexSpecifier) + 1).ToString("X")
|
Uuid = Mid(Uuid, 1, 32 - 5) & (Long.Parse(Right(Uuid, 5), Globalization.NumberStyles.AllowHexSpecifier) + 1).ToString("X").PadLeft(5, "0")
|
||||||
Loop
|
Loop
|
||||||
End Select
|
End Select
|
||||||
Return Uuid
|
Return Uuid
|
||||||
|
|||||||
Reference in New Issue
Block a user