-
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
Showing
31 changed files
with
1,190 additions
and
2 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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Build Linux | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: 6.0.x | ||
- name: Restore dependencies | ||
run: dotnet restore | ||
- name: Build | ||
run: dotnet build --no-restore | ||
- name: Test | ||
run: dotnet test --no-build --verbosity normal | ||
|
||
- name: Publish | ||
run: dotnet publish | ||
|
||
- name: Upload WebApp1 Build Artifact | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: CanaryLauncher | ||
path: /home/runner/work/CanaryLauncherUpdate/CanaryLauncherUpdate/bin/Debug/net6.0-windows/publish/ |
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 |
---|---|---|
@@ -0,0 +1,50 @@ | ||
--- | ||
name: Build Windows | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
|
||
jobs: | ||
|
||
build: | ||
|
||
strategy: | ||
matrix: | ||
configuration: [Release] | ||
|
||
runs-on: windows-latest | ||
|
||
env: | ||
Solution_Name: CanaryLauncherUpdate.csproj | ||
Test_Project_Path: CanaryLauncherUpdate.csproj | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
# Install the .NET Core workload | ||
- name: Install .NET Core | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: 6.0.x | ||
|
||
# Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild | ||
- name: Setup MSBuild.exe | ||
uses: microsoft/[email protected] | ||
|
||
# Execute all unit tests in the solution | ||
- name: Execute unit tests | ||
run: dotnet test | ||
|
||
- name: Publish | ||
run: dotnet publish | ||
|
||
- name: Upload Build Artifact | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: CanaryLauncher | ||
path: D:\a\CanaryLauncherUpdate\CanaryLauncherUpdate\bin\Debug\net6.0-windows\publish\ |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
bin | ||
obj | ||
.vs | ||
*.user | ||
|
||
# Build results | ||
Properties/ | ||
.vs/ | ||
.obj/ |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:local="clr-namespace:CanaryLauncherUpdate.Assets"> | ||
<!--#region Icons--> | ||
<PathGeometry | ||
x:Key="close_ico" | ||
Figures="M15.125 12.28125L12.28125 15.125L22.21875 25L12.28125 34.875L15.125 37.71875L25.0625 27.84375L35 37.71875L37.8125 34.875L27.90625 25L37.8125 15.125L35 12.28125L25.0625 22.15625Z"/> | ||
|
||
<PathGeometry | ||
x:Key="minimize_ico" | ||
Figures="M3 11L3 13L21 13L21 11L3 11 z"/> | ||
|
||
<PathGeometry | ||
x:Key="maximize_ico" | ||
Figures="M9 4C6.2504839 4 4 6.2504839 4 9L4 41C4 43.749516 6.2504839 46 9 46L41 46C43.749516 46 46 43.749516 46 41L46 9C46 6.2504839 43.749516 4 41 4L9 4 z M 9 6L41 6C42.668484 6 44 7.3315161 44 9L44 41C44 42.668484 42.668484 44 41 44L9 44C7.3315161 44 6 42.668484 6 41L6 9C6 7.3315161 7.3315161 6 9 6 z M 14 13C12.906937 13 12 13.906937 12 15L12 34C12 35.093063 12.906937 36 14 36L36 36C37.093063 36 38 35.093063 38 34L38 15C38 13.906937 37.093063 13 36 13L14 13 z M 14 15L36 15L36 17L14 17L14 15 z M 14 19L36 19L36 34L14 34L14 19 z"/> | ||
|
||
<PathGeometry | ||
x:Key="restore_ico" | ||
Figures="M6 0 A 1.0001 1.0001 0 0 0 5 1L5 5L1 5 A 1.0001 1.0001 0 0 0 0 6L0 25 A 1.0001 1.0001 0 0 0 1 26L20 26 A 1.0001 1.0001 0 0 0 21 25L21 21L25 21 A 1.0001 1.0001 0 0 0 26 20L26 1 A 1.0001 1.0001 0 0 0 25 0L6 0 z M 7 2L24 2L24 19L21 19L21 6 A 1.0001 1.0001 0 0 0 20 5L7 5L7 2 z M 2 7L19 7L19 24L2 24L2 7 z"/> | ||
|
||
<PathGeometry | ||
x:Key="leftArrow" | ||
Figures="M17,3h2c0.386,0,0.738,0.223,0.904,0.572s0.115,0.762-0.13,1.062L11.292,15l8.482,10.367 c0.245,0.299,0.295,0.712,0.13,1.062S19.386,27,19,27h-2c-0.3,0-0.584-0.135-0.774-0.367l-9-11c-0.301-0.369-0.301-0.898,0-1.267 l9-11C16.416,3.135,16.7,3,17,3z"/> | ||
<PathGeometry | ||
x:Key="rightArrow" | ||
Figures="M12,27h-2c-0.386,0-0.738-0.223-0.904-0.572s-0.115-0.762,0.13-1.062L17.708,15L9.226,4.633 c-0.245-0.299-0.295-0.712-0.13-1.062S9.614,3,10,3h2c0.3,0,0.584,0.135,0.774,0.367l9,11c0.301,0.369,0.301,0.898,0,1.267l-9,11 C12.584,26.865,12.3,27,12,27z"/> | ||
|
||
<PathGeometry | ||
x:Key="libraryIcon" | ||
Figures="M5 12C3.343 12 2 13.343 2 15C2 16.657 3.343 18 5 18C6.657 18 8 16.657 8 15C8 13.343 6.657 12 5 12 z M 15 12C13.343 12 12 13.343 12 15C12 16.657 13.343 18 15 18C16.657 18 18 16.657 18 15C18 13.343 16.657 12 15 12 z M 25 12C23.343 12 22 13.343 22 15C22 16.657 23.343 18 25 18C26.657 18 28 16.657 28 15C28 13.343 26.657 12 25 12 z"/> | ||
<!--#endregion--> | ||
</ResourceDictionary> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -0,0 +1,97 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> | ||
<PropertyGroup> | ||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | ||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | ||
<ProjectGuid>{E21D451C-4724-4738-A716-DD441AD38747}</ProjectGuid> | ||
<OutputType>WinExe</OutputType> | ||
<RootNamespace>CanaryLauncher</RootNamespace> | ||
<ApplicationIcon>icon.ico</ApplicationIcon> | ||
<AssemblyName>CanaryLauncher</AssemblyName> | ||
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion> | ||
<FileAlignment>512</FileAlignment> | ||
<ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> | ||
<WarningLevel>4</WarningLevel> | ||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects> | ||
<Deterministic>true</Deterministic> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | ||
<PlatformTarget>AnyCPU</PlatformTarget> | ||
<DebugSymbols>true</DebugSymbols> | ||
<DebugType>full</DebugType> | ||
<Optimize>false</Optimize> | ||
<OutputPath>bin\Debug\</OutputPath> | ||
<DefineConstants>DEBUG;TRACE</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> | ||
<PlatformTarget>AnyCPU</PlatformTarget> | ||
<DebugType>pdbonly</DebugType> | ||
<Optimize>true</Optimize> | ||
<OutputPath>bin\Release\</OutputPath> | ||
<DefineConstants>TRACE</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
<LangVersion>8</LangVersion> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<Reference Include="System" /> | ||
<Reference Include="System.Data" /> | ||
<Reference Include="System.Xml" /> | ||
<Reference Include="Microsoft.CSharp" /> | ||
<Reference Include="System.Core" /> | ||
<Reference Include="System.IO.Compression.FileSystem" /> | ||
<Reference Include="System.Xml.Linq" /> | ||
<Reference Include="System.Net.Http" /> | ||
<Reference Include="System.Data.DataSetExtensions" /> | ||
<Reference Include="System.Xaml" /> | ||
<Reference Include="WindowsBase" /> | ||
<Reference Include="PresentationCore" /> | ||
<Reference Include="PresentationFramework" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Compile Include="src\App.xaml.cs" /> | ||
<Compile Include="src\AssemblyInfo.cs" /> | ||
<Compile Include="src\ClientConfig.cs" /> | ||
<Compile Include="src\MainWindow.xaml.cs" /> | ||
<Compile Include="src\SplashScreen.xaml.cs" /> | ||
<PackageReference Include="Ionic.Zip" Version="1.9.1.8" /> | ||
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Resource Include="assets\icons.xaml"> | ||
<Generator>MSBuild:Compile</Generator> | ||
<SubType>Designer</SubType> | ||
</Resource> | ||
<Page Include="src\App.xaml"> | ||
<Generator>MSBuild:Compile</Generator> | ||
<SubType>Designer</SubType> | ||
</Page> | ||
<Page Include="src\MainWindow.xaml"> | ||
<Generator>MSBuild:Compile</Generator> | ||
<SubType>Designer</SubType> | ||
</Page> | ||
<Page Include="src\SplashScreen.xaml"> | ||
<Generator>MSBuild:Compile</Generator> | ||
<SubType>Designer</SubType> | ||
</Page> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Resource Include="assets\background.jpg" /> | ||
<Resource Include="assets\bg_button_update.png" /> | ||
<Resource Include="assets\bg_hints.png" /> | ||
<Resource Include="assets\button_hover_play.png" /> | ||
<Resource Include="assets\button_hover_update.png" /> | ||
<Resource Include="assets\button_play.png" /> | ||
<Resource Include="assets\button_update.png" /> | ||
<Resource Include="assets\icon_play.png" /> | ||
<Resource Include="assets\icon_update.png" /> | ||
<Resource Include="assets\launcher_ico.png" /> | ||
<Resource Include="assets\logo.png" /> | ||
<Resource Include="assets\logo_company.png" /> | ||
<Resource Include="assets\rh_lore.png" /> | ||
</ItemGroup> | ||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> | ||
</Project> |
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
# Visual Studio Version 17 | ||
VisualStudioVersion = 17.4.33205.214 | ||
MinimumVisualStudioVersion = 10.0.40219.1 | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CanaryLauncher", "CanaryLauncher.csproj", "{E21D451C-4724-4738-A716-DD441AD38747}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|Any CPU = Debug|Any CPU | ||
Release|Any CPU = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{E21D451C-4724-4738-A716-DD441AD38747}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{E21D451C-4724-4738-A716-DD441AD38747}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{E21D451C-4724-4738-A716-DD441AD38747}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{E21D451C-4724-4738-A716-DD441AD38747}.Release|Any CPU.Build.0 = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
GlobalSection(ExtensibilityGlobals) = postSolution | ||
SolutionGuid = {F0CE66E6-7311-4CFA-8866-0B11975F833A} | ||
EndGlobalSection | ||
EndGlobal |
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# ZyroniaOT - Launcher Update | ||
|
||
Laucher Update usado no projeto zyroniaot 13x. | ||
|
||
## Repositório Base: | ||
- Launcher Update: [Launcher](https://github.com/eightbites/client-launcher) | ||
|
||
## Requesitos: | ||
* C# WPF | ||
* .NET 6.0 | ||
|
||
## Informação: | ||
|
||
* ✅ Lançador como Tibia Global | ||
* ✅ Baixar cliente | ||
* ✅ Atualização de verificação automática | ||
* ✅ Atualizar cliente | ||
* ✅ Execute o cliente | ||
|
||
## Observação: | ||
- Você deve configurar a url "launcher_config.json" em MainWindow.cs e SplashScreen.cs | ||
- Em launcher_config.json você precisa fazer as configurações necessárias para usar o launcher. (Leia a explicação de como usar cada configuração) |
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/** | ||
• JSON configuration file for the Client Updater | ||
• version The version of the client, represented as "major.minor.patch". | ||
• replaceFolders Whether the updater should replace the client's current folders | ||
• folders An array of objects representing the client's folders, each object has the key "name" | ||
• clientFolder The name of the main client folder, represented as "Tibia" | ||
NOTE: Set it to "false" or only "" to not use the client folder, so everything will be added to the main folder | ||
• newClientUrl The URL where the new client version can be downloaded from | ||
• executable The path to the client's executable file, represented as "bin/client.exe" | ||
*/ | ||
{ | ||
"clientVersion": "13.40.54ea79", | ||
"launcherVersion": "1.2", | ||
"replaceFolders": true, | ||
"replaceFolderName": [ | ||
{ | ||
"name": "assets" | ||
}, | ||
{ | ||
"name": "storeimages" | ||
}, | ||
{ | ||
"name": "bin" | ||
} | ||
], | ||
"clientFolder": "AzuraOT", | ||
"newClientUrl" : "https://github.com/eightbites/azura-launcher/releases/download/client/client-to-update.zip", | ||
"clientExecutable": "client.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 |
---|---|---|
@@ -0,0 +1,70 @@ | ||
<Application x:Class="CanaryLauncherUpdate.App" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:local="clr-namespace:CanaryLauncherUpdate" | ||
StartupUri="SplashScreen.xaml"> | ||
<Application.Resources> | ||
|
||
<ResourceDictionary> | ||
<ResourceDictionary.MergedDictionaries> | ||
<ResourceDictionary Source="pack://application:,,,/Assets/icons.xaml"/> | ||
</ResourceDictionary.MergedDictionaries> | ||
|
||
<Style | ||
x:Key="WindowButtonStyle" | ||
TargetType="{x:Type Button}"> | ||
<Setter Property="Background" Value="Transparent"/> | ||
<Setter Property="Cursor" Value="Hand"/> | ||
<Setter Property="BorderThickness" Value="0"/> | ||
<Setter Property="Height" Value="25"/> | ||
<Setter Property="Width" Value="25"/> | ||
<Setter Property="Template"> | ||
<Setter.Value> | ||
<ControlTemplate TargetType="{x:Type Button}"> | ||
<Border | ||
Name="bd" | ||
Background="{TemplateBinding Background}" | ||
BorderThickness="{TemplateBinding BorderThickness}"> | ||
<Path | ||
Name="ico" | ||
Data="{TemplateBinding Content}" | ||
Fill="White" | ||
Height="10" | ||
Width="10" | ||
Stretch="Uniform"/> | ||
</Border> | ||
|
||
<ControlTemplate.Triggers> | ||
<Trigger Property="IsMouseOver" Value="True"> | ||
<Setter TargetName="bd" | ||
Property="Border.Background" | ||
Value="#000000"/> | ||
</Trigger> | ||
|
||
<MultiTrigger> | ||
<MultiTrigger.Conditions> | ||
<Condition Property="IsMouseOver" Value="True"/> | ||
<Condition Property="Tag" Value="IsCloseButton"/> | ||
</MultiTrigger.Conditions> | ||
<Setter Property="Background" | ||
Value="#000000"/> | ||
</MultiTrigger> | ||
</ControlTemplate.Triggers> | ||
</ControlTemplate> | ||
</Setter.Value> | ||
</Setter> | ||
</Style> | ||
|
||
<Style TargetType="{x:Type ToolTip}"> | ||
<Setter Property="Background" Value="#c0c0c0"/> | ||
<Setter Property="Foreground" Value="#404348"/> | ||
<Setter Property="HasDropShadow" Value="True"/> | ||
<Setter Property="BorderBrush" Value="#000202"/> | ||
<Setter Property="BorderThickness" Value="0"/> | ||
<Setter Property="Padding" Value="5"/> | ||
<Setter Property="HasDropShadow" Value="True"/> | ||
</Style> | ||
|
||
</ResourceDictionary> | ||
</Application.Resources> | ||
</Application> |
Oops, something went wrong.