Skip to content

Commit c3f3d4f

Browse files
author
Kristifor Milchev
committed
Adding icons and creating a new release
1 parent 7b8f198 commit c3f3d4f

35 files changed

+134
-52
lines changed

Initializer.cs

Lines changed: 27 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,27 @@
1-
using System;
2-
using System.Diagnostics;
3-
4-
namespace LInksync_Cold_Storage_Wallet
5-
{
6-
public class Initializer
7-
{
8-
public static IServiceProvider Provider {get; set;}
9-
10-
public static string AssemblyDirectory
11-
{
12-
get
13-
{
14-
string codeBase = System.Reflection.Assembly.GetExecutingAssembly().CodeBase;
15-
UriBuilder uri = new UriBuilder(codeBase);
16-
string path = Uri.UnescapeDataString(uri.Path);
17-
return Path.GetDirectoryName(path);
18-
}
19-
}
20-
21-
22-
23-
24-
25-
}
26-
}
1+
using System;
2+
using System.Diagnostics;
3+
using System.IO;
4+
5+
namespace LInksync_Cold_Storage_Wallet
6+
{
7+
public class Initializer
8+
{
9+
public static IServiceProvider Provider {get; set;}
10+
11+
public static string AssemblyDirectory
12+
{
13+
get
14+
{
15+
string codeBase = System.Reflection.Assembly.GetExecutingAssembly().CodeBase;
16+
UriBuilder uri = new UriBuilder(codeBase);
17+
string path = Uri.UnescapeDataString(uri.Path);
18+
return Path.GetDirectoryName(path);
19+
}
20+
}
21+
22+
23+
24+
25+
26+
}
27+
}

Pages/_Layout.cshtml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,30 @@
77
<head>
88
<meta charset="utf-8" />
99
<meta content="width=device-width, initial-scale=1" name="viewport" />
10-
<title>MauiApp1</title>
10+
<title>SYNC Wallet</title>
1111
<base href="/" />
1212
<link rel="stylesheet" href="css/bootstrap/bootstrap.min.css" />
1313
<link href="css/app.css" rel="stylesheet" />
1414
<link href="MauiApp1.styles.css" rel="stylesheet" />
1515

1616
<!-- Favicon icon -->
17+
<link rel="apple-touch-icon" sizes="57x57" href="/apple-icon-57x57.png">
18+
<link rel="apple-touch-icon" sizes="60x60" href="/apple-icon-60x60.png">
19+
<link rel="apple-touch-icon" sizes="72x72" href="/apple-icon-72x72.png">
20+
<link rel="apple-touch-icon" sizes="76x76" href="/apple-icon-76x76.png">
21+
<link rel="apple-touch-icon" sizes="114x114" href="/apple-icon-114x114.png">
22+
<link rel="apple-touch-icon" sizes="120x120" href="/apple-icon-120x120.png">
23+
<link rel="apple-touch-icon" sizes="144x144" href="/apple-icon-144x144.png">
24+
<link rel="apple-touch-icon" sizes="152x152" href="/apple-icon-152x152.png">
25+
<link rel="apple-touch-icon" sizes="180x180" href="/apple-icon-180x180.png">
26+
<link rel="icon" type="image/png" sizes="192x192" href="/android-icon-192x192.png">
27+
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
28+
<link rel="icon" type="image/png" sizes="96x96" href="/favicon-96x96.png">
29+
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
30+
<link rel="manifest" href="/manifest.json">
31+
<meta name="msapplication-TileColor" content="#ffffff">
32+
<meta name="msapplication-TileImage" content="/ms-icon-144x144.png">
33+
<meta name="theme-color" content="#ffffff">
1734
<!-- Custom CSS -->
1835
<link rel="stylesheet" href="/monster/src/assets/libs/apexcharts/dist/apexcharts.css">
1936
<link href="/monster/src/assets/extra-libs/jvector/jquery-jvectormap-2.0.2.css" rel="stylesheet" />

Program.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
using ElectronNET.API;
88
using ElectronNET.API.Entities;
99
using LInksync_Cold_Storage_Wallet.Services.Implementation;
10+
using Microsoft.AspNetCore.Builder;
11+
using Microsoft.Extensions.DependencyInjection;
12+
using Microsoft.Extensions.Hosting;
1013

1114
var builder = WebApplication.CreateBuilder(args);
1215

Readme.md

Lines changed: 33 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -65,36 +65,46 @@ Prerequisites:  
6565

6666
Compiling: 
6767

68-
* Windows => dotnet publish -r osx-x64
69-
* Mac => (switch to the branch Migration_Electron) dotnet publish -r osx-x64
70-
* Linux => (switch to the branch Migration_Electron) dotnet publish -r win-x64
68+
* Windows => electronize build /target win
69+
* Mac => electronize build /target osx
70+
* Linux => electronize build /target linux
71+
7172

7273

7374
### How to install from binary ?
7475

7576
You can download latest version from the repository LincSync latest release: 
7677

77-
https://github.com/KristiforMilchev/LInksync-Cold-Storage-Wallet/releases/tag/1.0.0.1
78-
79-
Important install process is temporary, due to issue with the main branch of Electron.net, once the issue is rosolved the dependency on wallet.sh will be dropped. UIRuntime will be replaced by the native Electron client from the Electron.Net project once it's upgraded .net 6
80-
78+
https://github.com/KristiforMilchev/LInksync-Cold-Storage-Wallet/releases/tag/1.0.0.2
79+
````
80+
Installing on Windows
81+
````
82+
Download the win-x64 from the link above, extract the archive to a folder of your chosing and install the app from LInksync-Cold-Storage-Wallet.exe
83+
````
8184
Installation on Linux:
82-
83-
Extract the Linux_1.0.0.1 contents into a folder
84-
85-
Add all dependencies -> sudo apt install npm (Or your choice of a package manager)
86-
87-
chmod +x wallet.sh
88-
89-
./wallet.sh
90-
91-
Installation OSX:
92-
93-
Extract the content of osx_x64
94-
95-
chmod +x LInksync-Cold-Storage-Wallet
96-
97-
./LInksync-Cold-Storage-Wallet
85+
````
86+
Extract the Linux_1.0.0.2 contents into a folder
87+
88+
Optional you can create a desktop link:
89+
90+
sudo nano /usr/share/applications/SYNCWallet.desktop
91+
````
92+
[Desktop Entry]
93+
Version=1.0.2
94+
Name=SYNCWallet
95+
Comment=
96+
Exec=/yourfolderpath/l-inksync--cold--storage--wallet
97+
Icon=/yourfolderpath/icon-linux.png
98+
Terminal=false
99+
Type=Application
100+
Categories=Utility;Application;
101+
````
102+
103+
Click save and you should have an icon for the app in your desktop manager.
104+
105+
````
106+
Mac OS is only supported by building from source OSX. No one on the team has Mac os to produce a build, thanks apple!
107+
````
98108

99109

100110
If you find my software beneficial, please consider buying me a coffee. Thanks! 

electron.manifest.json

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,26 @@
44
"imageFile": ""
55
},
66
"name": "LInksync-Cold-Storage-Wallet",
7-
"author": "",
7+
"author": "Collaborativesoft LTD",
88
"singleInstance": false,
99
"environment": "Production",
1010
"build": {
1111
"appId": "com.LInksync-Cold-Storage-Wallet.app",
1212
"productName": "LInksync-Cold-Storage-Wallet",
1313
"copyright": "Copyright © 2019-2022",
14-
"buildVersion": "1.0.0",
14+
"buildVersion": "1.0.2",
1515
"compression": "maximum",
1616
"directories": {
1717
"output": "../../../bin/Desktop"
1818
},
19+
"win": {
20+
21+
"icon": "../../../wwwroot/icon-linux.png"
22+
},
23+
"linux": {
24+
25+
"icon": "../../../wwwroot/icon-linux.png"
26+
},
1927
"extraResources": [
2028
{
2129
"from": "./bin",
5.48 KB
Binary file not shown.

wwwroot/android-icon-144x144.png

8.34 KB
Loading

wwwroot/android-icon-192x192.png

12.5 KB
Loading

wwwroot/android-icon-36x36.png

1.69 KB
Loading

wwwroot/android-icon-48x48.png

2.25 KB
Loading

0 commit comments

Comments
 (0)