Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
feliphechaves authored Dec 24, 2024
0 parents commit d4c601c
Show file tree
Hide file tree
Showing 37 changed files with 1,945 additions and 0 deletions.
Binary file added Assets/background.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Assets/bg_button_update.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Assets/bg_hints.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Assets/button_hover_play.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Assets/button_hover_update.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Assets/button_play.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Assets/button_update.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Assets/icon_play.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Assets/icon_update.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
32 changes: 32 additions & 0 deletions Assets/icons.xaml
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>
Binary file added Assets/launcher_ico.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Assets/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Assets/logo_company.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Assets/rh_lore.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
97 changes: 97 additions & 0 deletions CanaryLauncher.csproj
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>
25 changes: 25 additions & 0 deletions CanaryLauncher.sln
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
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Canary Launcher Update
* C# WPF
* .NET 6.0

### Information

* ✅ Launcher like Tibia Global
* ✅ Download client
* ✅ Auto check update
* ✅ Update client
* ✅ Run the client

You must configure the "launcher_config.json" url in MainWindow.cs and SplashScreen.cs

In launcher_config.json you need to make necessary settings to use the launcher. (Read the explanation of how to use each configuration)
Binary file added icon.ico
Binary file not shown.
29 changes: 29 additions & 0 deletions launcher_config.json
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.20.13560",
"launcherVersion": "1.0",
"replaceFolders": true,
"replaceFolderName": [
{
"name": "assets"
},
{
"name": "storeimages"
},
{
"name": "bin"
}
],
"clientFolder": "Tibia",
"newClientUrl" : "https://github.com/opentibiabr/canary-launcher/releases/download/1.0.0/client-to-update.zip",
"clientExecutable": "client.exe"
}
Binary file not shown.
20 changes: 20 additions & 0 deletions obj/Debug/CanaryLauncher_MarkupCompile.cache
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
CanaryLauncher


winexe
C#
.cs
C:\AiolosOT\canary-launcher\obj\Debug\
CanaryLauncher
none
false
DEBUG;TRACE

3138698893

6-596848513
141662518811
src\App.xaml;src\MainWindow.xaml;src\SplashScreen.xaml;

True

6 changes: 6 additions & 0 deletions obj/Debug/CanaryLauncher_MarkupCompile.lref
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@


FC:\AiolosOT\canary-launcher\src\App.xaml;;
FC:\AiolosOT\canary-launcher\src\MainWindow.xaml;;
FC:\AiolosOT\canary-launcher\src\SplashScreen.xaml;;

Binary file not shown.
81 changes: 81 additions & 0 deletions obj/Debug/src/App.g.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
#pragma checksum "..\..\..\src\App.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "A491A4646A1F13D4226E4B49026528E4A0D70D38B77E1B61768CDC22E6258E0B"
//------------------------------------------------------------------------------
// <auto-generated>
// O código foi gerado por uma ferramenta.
// Versão de Tempo de Execução:4.0.30319.42000
//
// As alterações ao arquivo poderão causar comportamento incorreto e serão perdidas se
// o código for gerado novamente.
// </auto-generated>
//------------------------------------------------------------------------------

using CanaryLauncherUpdate;
using System;
using System.Diagnostics;
using System.Windows;
using System.Windows.Automation;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Markup;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Media.Effects;
using System.Windows.Media.Imaging;
using System.Windows.Media.Media3D;
using System.Windows.Media.TextFormatting;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Windows.Shell;


namespace CanaryLauncherUpdate {


/// <summary>
/// App
/// </summary>
public partial class App : System.Windows.Application, System.Windows.Markup.IComponentConnector {

private bool _contentLoaded;

/// <summary>
/// InitializeComponent
/// </summary>
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
public void InitializeComponent() {

#line 5 "..\..\..\src\App.xaml"
this.StartupUri = new System.Uri("SplashScreen.xaml", System.UriKind.Relative);

#line default
#line hidden
if (_contentLoaded) {
return;
}
_contentLoaded = true;
System.Uri resourceLocater = new System.Uri("/CanaryLauncher;component/src/app.xaml", System.UriKind.Relative);

#line 1 "..\..\..\src\App.xaml"
System.Windows.Application.LoadComponent(this, resourceLocater);

#line default
#line hidden
}

[System.Diagnostics.DebuggerNonUserCodeAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
this._contentLoaded = true;
}
}
}

81 changes: 81 additions & 0 deletions obj/Debug/src/App.g.i.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
#pragma checksum "..\..\..\src\App.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "A491A4646A1F13D4226E4B49026528E4A0D70D38B77E1B61768CDC22E6258E0B"
//------------------------------------------------------------------------------
// <auto-generated>
// O código foi gerado por uma ferramenta.
// Versão de Tempo de Execução:4.0.30319.42000
//
// As alterações ao arquivo poderão causar comportamento incorreto e serão perdidas se
// o código for gerado novamente.
// </auto-generated>
//------------------------------------------------------------------------------

using CanaryLauncherUpdate;
using System;
using System.Diagnostics;
using System.Windows;
using System.Windows.Automation;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Markup;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Media.Effects;
using System.Windows.Media.Imaging;
using System.Windows.Media.Media3D;
using System.Windows.Media.TextFormatting;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Windows.Shell;


namespace CanaryLauncherUpdate {


/// <summary>
/// App
/// </summary>
public partial class App : System.Windows.Application, System.Windows.Markup.IComponentConnector {

private bool _contentLoaded;

/// <summary>
/// InitializeComponent
/// </summary>
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
public void InitializeComponent() {

#line 5 "..\..\..\src\App.xaml"
this.StartupUri = new System.Uri("SplashScreen.xaml", System.UriKind.Relative);

#line default
#line hidden
if (_contentLoaded) {
return;
}
_contentLoaded = true;
System.Uri resourceLocater = new System.Uri("/CanaryLauncher;component/src/app.xaml", System.UriKind.Relative);

#line 1 "..\..\..\src\App.xaml"
System.Windows.Application.LoadComponent(this, resourceLocater);

#line default
#line hidden
}

[System.Diagnostics.DebuggerNonUserCodeAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
this._contentLoaded = true;
}
}
}

Loading

0 comments on commit d4c601c

Please sign in to comment.