chore: initialize PCL-ISE 0.1.0
This commit is contained in:
Vendored
+34
@@ -0,0 +1,34 @@
|
|||||||
|
[CmdletBinding()]
|
||||||
|
param(
|
||||||
|
[ValidateSet('Debug', 'Release', 'Snapshot')]
|
||||||
|
[string]$Configuration = 'Debug'
|
||||||
|
)
|
||||||
|
|
||||||
|
$ErrorActionPreference = 'Stop'
|
||||||
|
$solution = Join-Path $PSScriptRoot '..\Plain Craft Launcher 2.sln'
|
||||||
|
$solution = [IO.Path]::GetFullPath($solution)
|
||||||
|
|
||||||
|
$msbuild = (Get-Command msbuild.exe -ErrorAction SilentlyContinue).Source
|
||||||
|
if (-not $msbuild) {
|
||||||
|
$vswhere = @(
|
||||||
|
(Join-Path ${env:ProgramFiles(x86)} 'Microsoft Visual Studio\Installer\vswhere.exe'),
|
||||||
|
(Join-Path $env:ProgramFiles 'Microsoft Visual Studio\Installer\vswhere.exe')
|
||||||
|
) | Where-Object { Test-Path $_ } | Select-Object -First 1
|
||||||
|
|
||||||
|
if ($vswhere) {
|
||||||
|
$installationPath = & $vswhere -latest -products * -requires Microsoft.Component.MSBuild -property installationPath
|
||||||
|
if ($installationPath) {
|
||||||
|
$candidate = Join-Path $installationPath 'MSBuild\Current\Bin\MSBuild.exe'
|
||||||
|
if (Test-Path $candidate) { $msbuild = $candidate }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (-not $msbuild) {
|
||||||
|
throw 'MSBuild was not found. Install Visual Studio Build Tools with the .NET desktop build tools and .NET Framework 4.8 targeting pack.'
|
||||||
|
}
|
||||||
|
|
||||||
|
Write-Host "MSBuild: $msbuild"
|
||||||
|
Write-Host "Configuration: $Configuration"
|
||||||
|
& $msbuild $solution /t:Build "/p:Configuration=$Configuration" "/p:Platform=Any CPU" /m /v:minimal
|
||||||
|
exit $LASTEXITCODE
|
||||||
Vendored
+6
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"recommendations": [
|
||||||
|
"ms-dotnettools.csharp",
|
||||||
|
"ms-dotnettools.csdevkit"
|
||||||
|
]
|
||||||
|
}
|
||||||
Vendored
+3
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"dotnet.defaultSolution": "Plain Craft Launcher 2.sln"
|
||||||
|
}
|
||||||
Vendored
+39
@@ -0,0 +1,39 @@
|
|||||||
|
{
|
||||||
|
"version": "2.0.0",
|
||||||
|
"tasks": [
|
||||||
|
{
|
||||||
|
"label": "Build PCL-ISE (Debug)",
|
||||||
|
"type": "shell",
|
||||||
|
"command": "powershell.exe",
|
||||||
|
"args": [
|
||||||
|
"-NoProfile",
|
||||||
|
"-ExecutionPolicy",
|
||||||
|
"Bypass",
|
||||||
|
"-File",
|
||||||
|
"${workspaceFolder}\\.vscode\\build.ps1",
|
||||||
|
"-Configuration",
|
||||||
|
"Debug"
|
||||||
|
],
|
||||||
|
"problemMatcher": "$msCompile",
|
||||||
|
"group": {
|
||||||
|
"kind": "build",
|
||||||
|
"isDefault": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Build PCL-ISE (Release)",
|
||||||
|
"type": "shell",
|
||||||
|
"command": "powershell.exe",
|
||||||
|
"args": [
|
||||||
|
"-NoProfile",
|
||||||
|
"-ExecutionPolicy",
|
||||||
|
"Bypass",
|
||||||
|
"-File",
|
||||||
|
"${workspaceFolder}\\.vscode\\build.ps1",
|
||||||
|
"-Configuration",
|
||||||
|
"Release"
|
||||||
|
],
|
||||||
|
"problemMatcher": "$msCompile"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -5,8 +5,10 @@ Public Module ModBase
|
|||||||
|
|
||||||
#Region "声明"
|
#Region "声明"
|
||||||
|
|
||||||
'下列版本信息由更新器自动修改
|
'PCL-ISE 版本规则:主版本.次版本.修订版本;内部 VersionCode 继续用于更新兼容判断。
|
||||||
Public Const VersionBaseName As String = "2.99.0.0" '显示用版本名
|
Public Const ProductName As String = "Plain Craft Launcher (PCL) InfstarMC Edition"
|
||||||
|
Public Const ProductShortName As String = "PCL-ISE"
|
||||||
|
Public Const VersionBaseName As String = "0.1.0" '显示用版本名
|
||||||
Public Const CommitHash As String = "" 'Commit Hash,由 GitHub Workflow 自动替换
|
Public Const CommitHash As String = "" 'Commit Hash,由 GitHub Workflow 自动替换
|
||||||
#If RELEASE Then
|
#If RELEASE Then
|
||||||
Public Const VersionCode As Integer = 413 '正式版
|
Public Const VersionCode As Integer = 413 '正式版
|
||||||
|
|||||||
@@ -8,10 +8,10 @@ Imports System.Runtime.InteropServices
|
|||||||
|
|
||||||
'查看程序集特性的值
|
'查看程序集特性的值
|
||||||
|
|
||||||
<Assembly: AssemblyTitle("Plain Craft Launcher 启动器")>
|
<Assembly: AssemblyTitle("Plain Craft Launcher (PCL) InfstarMC Edition")>
|
||||||
<Assembly: AssemblyDescription("Minecraft 启动器")>
|
<Assembly: AssemblyDescription("InfstarMC 基于 PCL 独立进行的第三方 Minecraft 启动器")>
|
||||||
<Assembly: AssemblyCompany("")>
|
<Assembly: AssemblyCompany("InfstarMC")>
|
||||||
<Assembly: AssemblyProduct("Plain Craft Launcher")>
|
<Assembly: AssemblyProduct("Plain Craft Launcher (PCL) InfstarMC Edition")>
|
||||||
<Assembly: AssemblyCopyright("Copyright © 成都瓜皮龙科技有限公司")>
|
<Assembly: AssemblyCopyright("Copyright © 成都瓜皮龙科技有限公司")>
|
||||||
<Assembly: AssemblyConfiguration("PCL2 Config Mark")>
|
<Assembly: AssemblyConfiguration("PCL2 Config Mark")>
|
||||||
<Assembly: ComVisible(False)>
|
<Assembly: ComVisible(False)>
|
||||||
@@ -51,6 +51,6 @@ Imports System.Runtime.InteropServices
|
|||||||
' 可以指定所有值,也可以使用以下所示的 "*" 预置版本号和修订号
|
' 可以指定所有值,也可以使用以下所示的 "*" 预置版本号和修订号
|
||||||
' 方法是按如下所示使用“*”
|
' 方法是按如下所示使用“*”
|
||||||
|
|
||||||
<Assembly: AssemblyVersion("2.99.0.0")>
|
<Assembly: AssemblyVersion("0.1.0")>
|
||||||
<Assembly: AssemblyFileVersion("2.99.0.0")>
|
<Assembly: AssemblyFileVersion("0.1.0")>
|
||||||
<Assembly: NeutralResourcesLanguage("")>
|
<Assembly: NeutralResourcesLanguage("")>
|
||||||
|
|||||||
@@ -12,6 +12,7 @@
|
|||||||
<RowDefinition Height="45" />
|
<RowDefinition Height="45" />
|
||||||
<RowDefinition Height="45" />
|
<RowDefinition Height="45" />
|
||||||
<RowDefinition Height="45" />
|
<RowDefinition Height="45" />
|
||||||
|
<RowDefinition Height="45" />
|
||||||
</Grid.RowDefinitions>
|
</Grid.RowDefinitions>
|
||||||
<Grid.ColumnDefinitions>
|
<Grid.ColumnDefinitions>
|
||||||
<ColumnDefinition Width="40" />
|
<ColumnDefinition Width="40" />
|
||||||
@@ -20,7 +21,8 @@
|
|||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
<local:MyListItem IsHitTestVisible="False" Title="龙腾猫跃" Margin="-5,0,15,0" Info="Plain Craft Launcher 的开发者!" Grid.Row="0" Grid.Column="1" />
|
<local:MyListItem IsHitTestVisible="False" Title="龙腾猫跃" Margin="-5,0,15,0" Info="Plain Craft Launcher 的开发者!" Grid.Row="0" Grid.Column="1" />
|
||||||
<local:MyListItem IsHitTestVisible="False" Title="HerobrineXia" Margin="-5,0,15,0" Info="Plain Craft Launcher 的协力开发者!" Grid.Row="1" Grid.Column="1" />
|
<local:MyListItem IsHitTestVisible="False" Title="HerobrineXia" Margin="-5,0,15,0" Info="Plain Craft Launcher 的协力开发者!" Grid.Row="1" Grid.Column="1" />
|
||||||
<local:MyListItem IsHitTestVisible="False" Title="Plain Craft Launcher 2" Margin="-5,0,15,0" Info="当前版本:%VERSION%(%VERSIONCODE%.%BRANCH%)" Grid.Row="2" Grid.Column="1" x:Name="ItemAboutPcl" />
|
<local:MyListItem IsHitTestVisible="False" Title="Coldsmile_7" Margin="-5,0,15,0" Info="Plain Craft Launcher (PCL) InfstarMC Edition 的开发者!" Grid.Row="2" Grid.Column="1" />
|
||||||
|
<local:MyListItem IsHitTestVisible="False" Title="Plain Craft Launcher (PCL) InfstarMC Edition" Margin="-5,0,15,0" Info="当前版本:%VERSION%(%VERSIONCODE%.%BRANCH%)" Grid.Row="3" Grid.Column="1" x:Name="ItemAboutPcl" />
|
||||||
<Image Source="/Plain Craft Launcher 2;component/Images/Heads/LTCat.jpg" Grid.Row="0" Margin="3">
|
<Image Source="/Plain Craft Launcher 2;component/Images/Heads/LTCat.jpg" Grid.Row="0" Margin="3">
|
||||||
<Image.Clip>
|
<Image.Clip>
|
||||||
<EllipseGeometry Center="17 17" RadiusX="17" RadiusY="17" />
|
<EllipseGeometry Center="17 17" RadiusX="17" RadiusY="17" />
|
||||||
@@ -36,10 +38,16 @@
|
|||||||
<EllipseGeometry Center="17 17" RadiusX="17" RadiusY="17" />
|
<EllipseGeometry Center="17 17" RadiusX="17" RadiusY="17" />
|
||||||
</Image.Clip>
|
</Image.Clip>
|
||||||
</Image>
|
</Image>
|
||||||
|
<Image Source="/Plain Craft Launcher 2;component/Images/Heads/Logo.png" Grid.Row="3" Margin="3">
|
||||||
|
<Image.Clip>
|
||||||
|
<EllipseGeometry Center="17 17" RadiusX="17" RadiusY="17" />
|
||||||
|
</Image.Clip>
|
||||||
|
</Image>
|
||||||
<local:MyButton Text="赞助 PCL !" Grid.Column="2" Grid.Row="0" Height="35" ColorType="Highlight"
|
<local:MyButton Text="赞助 PCL !" Grid.Column="2" Grid.Row="0" Height="35" ColorType="Highlight"
|
||||||
local:CustomEventService.EventType="打开网页" local:CustomEventService.EventData="https://meloong.com/afd/a/LTCat" />
|
local:CustomEventService.EventType="打开网页" local:CustomEventService.EventData="https://meloong.com/afd/a/LTCat" />
|
||||||
<local:MyButton Text="检查更新" Grid.Column="2" Grid.Row="2" Height="35"
|
<local:MyButton Text="项目仓库" Grid.Column="2" Grid.Row="2" Height="35"
|
||||||
x:Name="BtnAboutUpdate" />
|
local:CustomEventService.EventType="打开网页" local:CustomEventService.EventData="https://git.infstar.cn/InfStarMC/PCL-ISE" />
|
||||||
|
<local:MyButton Text="检查更新" Grid.Column="2" Grid.Row="3" Height="35" x:Name="BtnAboutUpdate" />
|
||||||
</Grid>
|
</Grid>
|
||||||
</local:MyCard>
|
</local:MyCard>
|
||||||
<local:MyCard Margin="0,0,0,15" Title="特别鸣谢">
|
<local:MyCard Margin="0,0,0,15" Title="特别鸣谢">
|
||||||
@@ -537,13 +545,13 @@
|
|||||||
<TextBlock Text="隐私声明与个人信息保护政策" TextWrapping="Wrap" Margin="0,10,0,4" FontWeight="Bold" />
|
<TextBlock Text="隐私声明与个人信息保护政策" TextWrapping="Wrap" Margin="0,10,0,4" FontWeight="Bold" />
|
||||||
<TextBlock Margin="0,0,0,2" LineHeight="17" Text="PCL 没有收集个人信息,所以这里其实啥都不用写……
留个这个其实只是为了让你知道 PCL 没有收集个人信息,诶嘿。" TextWrapping="Wrap" />
|
<TextBlock Margin="0,0,0,2" LineHeight="17" Text="PCL 没有收集个人信息,所以这里其实啥都不用写……
留个这个其实只是为了让你知道 PCL 没有收集个人信息,诶嘿。" TextWrapping="Wrap" />
|
||||||
<TextBlock Text="其他信息" TextWrapping="Wrap" Margin="0,10,0,4" FontWeight="Bold" />
|
<TextBlock Text="其他信息" TextWrapping="Wrap" Margin="0,10,0,4" FontWeight="Bold" />
|
||||||
<TextBlock Margin="0,0,0,2" LineHeight="17" Text="Copyright © 成都瓜皮龙科技有限公司 计算机软件著作权登记号:2020SR0875133 违法违规行为举报投诉邮箱:admin@meloong.com 非 MINECRAFT 官方产品。未经 MOJANG 或 MICROSOFT 批准,也不与 MOJANG 或 MICROSOFT 关联。" TextWrapping="Wrap" />
|
<TextBlock Margin="0,0,0,2" LineHeight="17" Text="Copyright © 成都瓜皮龙科技有限公司 计算机软件著作权登记号:2020SR0875133 本软件是 InfstarMC 基于 Plain Craft Launcher (PCL) 独立进行的第三方二次开发版本,不代表 PCL 官方。 非 MINECRAFT 官方产品。未经 MOJANG 或 MICROSOFT 批准,也不与 MOJANG 或 MICROSOFT 关联。" TextWrapping="Wrap" />
|
||||||
<StackPanel Orientation="Horizontal" Height="35" HorizontalAlignment="Left" Margin="0,12,0,0">
|
<StackPanel Orientation="Horizontal" Height="35" HorizontalAlignment="Left" Margin="0,12,0,0">
|
||||||
<local:MyButton Text="用户协议与免责声明" Width="170" Padding="13,0" Margin="0,0,20,0" ColorType="Highlight"
|
<local:MyButton Text="用户协议与免责声明" Width="170" Padding="13,0" Margin="0,0,20,0" ColorType="Highlight"
|
||||||
local:CustomEventService.EventType="打开网页" local:CustomEventService.EventData="https://shimo.im/docs/rGrd8pY8xWkt6ryW#anchor-RnU9" />
|
local:CustomEventService.EventType="打开网页" local:CustomEventService.EventData="https://shimo.im/docs/rGrd8pY8xWkt6ryW#anchor-RnU9" />
|
||||||
<local:MyButton Text="PCL 分发有限许可" Width="170" Padding="13,0" Margin="0,0,20,0"
|
<local:MyButton Text="PCL 分发有限许可" Width="170" Padding="13,0" Margin="0,0,20,0"
|
||||||
local:CustomEventService.EventType="打开网页" local:CustomEventService.EventData="https://shimo.im/docs/rGrd8pY8xWkt6ryW#anchor-X0bo" />
|
local:CustomEventService.EventType="打开网页" local:CustomEventService.EventData="https://shimo.im/docs/rGrd8pY8xWkt6ryW#anchor-X0bo" />
|
||||||
<local:MyButton Text="开源代码" Width="140" Padding="13,0" local:CustomEventService.EventType="打开网页" local:CustomEventService.EventData="https://github.com/Hex-Dragon/PCL2" />
|
<local:MyButton Text="开源代码" Width="140" Padding="13,0" local:CustomEventService.EventType="打开网页" local:CustomEventService.EventData="https://git.infstar.cn/InfStarMC/PCL-ISE" />
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</local:MyCard>
|
</local:MyCard>
|
||||||
|
|||||||
Reference in New Issue
Block a user