-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from davidtimovski/dev
Upgrade to Avalonia UI v11
- Loading branch information
Showing
82 changed files
with
561 additions
and
593 deletions.
There are no files selected for viewing
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
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
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
Large diffs are not rendered by default.
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,17 @@ | ||
# Publishing for Linux | ||
|
||
1. Update the version and potentially target framework in the files | ||
2. Publish the app for x64 and ARM with the following commands: | ||
``` | ||
dotnet publish "./TeamSketch.csproj" --verbosity quiet --nologo --configuration Release --self-contained true --runtime linux-x64 --output "./bin/Release/net8.0/linux-x64" | ||
dotnet publish "./TeamSketch.csproj" --verbosity quiet --nologo --configuration Release --self-contained true --runtime linux-arm --output "./bin/Release/net8.0/linux-arm" | ||
``` | ||
3. Create the deployment files by running the PowerShell scripts | ||
4. Move the produced files from the `output` folder to WSL and run the Debian packaging commands: | ||
|
||
``` | ||
dpkg-deb --root-owner-group --build team-sketch_*_amd64 | ||
dpkg-deb --root-owner-group --build team-sketch_*_armhf | ||
``` | ||
|
||
Follow the [official Avalonia UI guidance](https://docs.avaloniaui.net/docs/deployment/debian-ubuntu) for more details. |
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 |
---|---|---|
@@ -1,10 +1,11 @@ | ||
$Version = "0.8.2" | ||
$Version = "0.9.0" | ||
$RepoDir = "R:\repos\team-sketch" | ||
$TargetFramework = "net8.0" | ||
|
||
cd "C:\Users\david\source\repos\team-sketch\publishing\linux" | ||
cd "${RepoDir}\publishing\linux" | ||
|
||
New-Item -Path . -Name "output\team-sketch_${Version}_amd64" -ItemType "directory" | ||
Copy-Item -Path "C:\Users\david\source\repos\team-sketch\publishing\linux\template_64\*" -Destination "C:\Users\david\source\repos\team-sketch\publishing\linux\output\team-sketch_${Version}_amd64\" -Recurse | ||
Copy-Item -Path "${RepoDir}\publishing\linux\template_64\*" -Destination "${RepoDir}\publishing\linux\output\team-sketch_${Version}_amd64\" -Recurse | ||
|
||
Copy-Item "C:\Users\david\source\repos\team-sketch\publishing\linux\template_64\DEBIAN\control" -Destination "C:\Users\david\source\repos\team-sketch\publishing\linux\output\team-sketch_${Version}_amd64\DEBIAN\control" | ||
|
||
Copy-Item "C:\Users\david\source\repos\team-sketch\src\TeamSketch\bin\Release\net6.0\publish\linux-x64\TeamSketch" -Destination "C:\Users\david\source\repos\team-sketch\publishing\linux\output\team-sketch_${Version}_amd64\usr\bin\team-sketch" | ||
New-Item -Path . -Name "output\team-sketch_${Version}_amd64\usr\lib\team-sketch" -ItemType "directory" | ||
Copy-Item "${RepoDir}\src\TeamSketch\bin\Release\${TargetFramework}\linux-x64\*" -Destination "${RepoDir}\publishing\linux\output\team-sketch_${Version}_amd64\usr\lib\team-sketch\" |
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 |
---|---|---|
@@ -1,10 +1,11 @@ | ||
$Version = "0.8.2" | ||
$Version = "0.9.0" | ||
$RepoDir = "R:\repos\team-sketch" | ||
$TargetFramework = "net8.0" | ||
|
||
cd "C:\Users\david\source\repos\team-sketch\publishing\linux" | ||
cd "${RepoDir}\publishing\linux" | ||
|
||
New-Item -Path . -Name "output\team-sketch_${Version}_armhf" -ItemType "directory" | ||
Copy-Item -Path "C:\Users\david\source\repos\team-sketch\publishing\linux\template_arm\*" -Destination "C:\Users\david\source\repos\team-sketch\publishing\linux\output\team-sketch_${Version}_armhf\" -Recurse | ||
Copy-Item -Path "${RepoDir}\publishing\linux\template_arm\*" -Destination "${RepoDir}\publishing\linux\output\team-sketch_${Version}_armhf\" -Recurse | ||
|
||
Copy-Item "C:\Users\david\source\repos\team-sketch\publishing\linux\template_arm\DEBIAN\control" -Destination "C:\Users\david\source\repos\team-sketch\publishing\linux\output\team-sketch_${Version}_armhf\DEBIAN\control" | ||
|
||
Copy-Item "C:\Users\david\source\repos\team-sketch\src\TeamSketch\bin\Release\net6.0\publish\linux-arm\TeamSketch" -Destination "C:\Users\david\source\repos\team-sketch\publishing\linux\output\team-sketch_${Version}_armhf\usr\bin\team-sketch" | ||
New-Item -Path . -Name "output\team-sketch_${Version}_armhf\usr\lib\team-sketch" -ItemType "directory" | ||
Copy-Item "${RepoDir}\src\TeamSketch\bin\Release\${TargetFramework}\linux-arm\*" -Destination "${RepoDir}\publishing\linux\output\team-sketch_${Version}_armhf\usr\lib\team-sketch\" |
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 |
---|---|---|
@@ -1,13 +1,10 @@ | ||
Package: team-sketch | ||
Architecture: amd64 | ||
Section: base | ||
Standards-Version: 4.0.0 | ||
Version: 0.9.0 | ||
Section: devel | ||
Priority: optional | ||
Name: Team Sketch | ||
Description: Sketch with your friends. | ||
Author: David Timovski <david.timovski@gmail.com> | ||
Maintainer: David Timovski <david.timovski@gmail.com> | ||
Version: 0.8.2 | ||
Essential: no | ||
Icon: /usr/share/icons/hicolor/scalable/apps/team-sketch.svg | ||
Architecture: amd64 | ||
Depends: libc6, libc6, libgcc-s1, libicu74, libssl3, libstdc++6, zlib1g | ||
Maintainer: David Timovski | ||
Homepage: https://www.davidtimovski.com/team-sketch | ||
Description: Sketch with your friends. | ||
Copyright: 2021-2024 David Timovski |
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,4 @@ | ||
#!/bin/bash | ||
# use exec to not have the wrapper script staying as a separate process | ||
# "$@" to pass command line arguments to the app | ||
exec /usr/lib/team-sketch/TeamSketch "$@" |
8 changes: 5 additions & 3 deletions
8
...sr/share/applications/team-sketch.desktop → ...usr/share/applications/TeamSketch.desktop
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 |
---|---|---|
@@ -1,9 +1,11 @@ | ||
[Desktop Entry] | ||
Name=Team Sketch | ||
Comment=Sketch with your friends | ||
GenericName=Text Editor | ||
Icon=team-sketch | ||
Exec=team-sketch | ||
Icon=/usr/share/icons/hicolor/scalable/apps/team-sketch.svg | ||
StartupWMClass=team-sketch | ||
Terminal=false | ||
Type=Application | ||
Categories=Art; | ||
Keywords=team;sketch; | ||
GenericName=Team Sketch | ||
Keywords=team; sketch; |
Binary file added
BIN
+4.93 KB
publishing/linux/template_64/usr/share/icons/hicolor/128x128/apps/team-sketch.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
BIN
+475 Bytes
publishing/linux/template_64/usr/share/icons/hicolor/16x16/apps/team-sketch.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
BIN
+10.2 KB
publishing/linux/template_64/usr/share/icons/hicolor/256x256/apps/team-sketch.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
BIN
+1.06 KB
publishing/linux/template_64/usr/share/icons/hicolor/32x32/apps/team-sketch.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
BIN
+1.72 KB
publishing/linux/template_64/usr/share/icons/hicolor/48x48/apps/team-sketch.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
BIN
+22.2 KB
publishing/linux/template_64/usr/share/icons/hicolor/512x512/apps/team-sketch.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
BIN
+2.36 KB
publishing/linux/template_64/usr/share/icons/hicolor/64x64/apps/team-sketch.png
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 |
---|---|---|
@@ -1,13 +1,10 @@ | ||
Package: team-sketch | ||
Architecture: armhf | ||
Section: base | ||
Standards-Version: 4.0.0 | ||
Version: 0.9.0 | ||
Section: devel | ||
Priority: optional | ||
Name: Team Sketch | ||
Description: Sketch with your friends. | ||
Author: David Timovski <david.timovski@gmail.com> | ||
Maintainer: David Timovski <david.timovski@gmail.com> | ||
Version: 0.8.2 | ||
Essential: no | ||
Icon: /usr/share/icons/hicolor/scalable/apps/team-sketch.svg | ||
Architecture: armhf | ||
Depends: libc6, libc6, libgcc-s1, libicu74, libssl3, libstdc++6, zlib1g | ||
Maintainer: David Timovski | ||
Homepage: https://www.davidtimovski.com/team-sketch | ||
Description: Sketch with your friends. | ||
Copyright: 2021-2024 David Timovski |
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,4 @@ | ||
#!/bin/bash | ||
# use exec to not have the wrapper script staying as a separate process | ||
# "$@" to pass command line arguments to the app | ||
exec /usr/lib/team-sketch/TeamSketch "$@" |
8 changes: 5 additions & 3 deletions
8
...sr/share/applications/team-sketch.desktop → ...usr/share/applications/TeamSketch.desktop
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 |
---|---|---|
@@ -1,9 +1,11 @@ | ||
[Desktop Entry] | ||
Name=Team Sketch | ||
Comment=Sketch with your friends | ||
GenericName=Text Editor | ||
Icon=team-sketch | ||
Exec=team-sketch | ||
Icon=/usr/share/icons/hicolor/scalable/apps/team-sketch.svg | ||
StartupWMClass=team-sketch | ||
Terminal=false | ||
Type=Application | ||
Categories=Art; | ||
Keywords=team;sketch; | ||
GenericName=Team Sketch | ||
Keywords=team; sketch; |
Binary file added
BIN
+4.93 KB
publishing/linux/template_arm/usr/share/icons/hicolor/128x128/apps/team-sketch.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
BIN
+475 Bytes
publishing/linux/template_arm/usr/share/icons/hicolor/16x16/apps/team-sketch.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
BIN
+10.2 KB
publishing/linux/template_arm/usr/share/icons/hicolor/256x256/apps/team-sketch.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
BIN
+1.06 KB
publishing/linux/template_arm/usr/share/icons/hicolor/32x32/apps/team-sketch.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
BIN
+1.72 KB
publishing/linux/template_arm/usr/share/icons/hicolor/48x48/apps/team-sketch.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
BIN
+22.2 KB
publishing/linux/template_arm/usr/share/icons/hicolor/512x512/apps/team-sketch.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
BIN
+2.36 KB
publishing/linux/template_arm/usr/share/icons/hicolor/64x64/apps/team-sketch.png
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,7 @@ | ||
# Publishing for Windows | ||
|
||
1. Adjust the `Properties\PublishProfiles\Win64.pubxml` file if needed | ||
2. Publish for Win64 using Visual Studio | ||
3. Open the `win64.iss` file with Inno Setup Compiler | ||
4. Adjust the version or target framework values | ||
5. Compile it |
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
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
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
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
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
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
namespace TeamSketch.Web.Config; | ||
|
||
public class DatabaseSettings | ||
public sealed class DatabaseSettings | ||
{ | ||
public required string ConnectionString { get; init; } | ||
} |
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
Oops, something went wrong.