added a build.sh because i'm lazy

This commit is contained in:
Lynne Megido 2020-09-01 17:16:42 +10:00
parent f20df85f31
commit 21e2cf6881
Signed by: lynnesbian
GPG key ID: F0A184B5213D9F90
2 changed files with 6 additions and 4 deletions

2
build.sh Executable file
View file

@ -0,0 +1,2 @@
#!/bin/sh
mcs -pkg:gtk-sharp-3.0 -resource:ui.glade *.cs

View file

@ -5,12 +5,12 @@ i figured, may as well try and learn c#
0uo 0uo
## installing ## installing prerequisites
you will need either: you will need either:
- [mono](https://www.mono-project.com/download/stable/) and [gtk sharp 3](https://github.com/GtkSharp/GtkSharp/) - [mono](https://www.mono-project.com/download/stable/) and [gtk sharp 3](https://github.com/GtkSharp/GtkSharp/)
- [dotnet core sdk](https://dotnet.microsoft.com/) - [dotnet core sdk](https://dotnet.microsoft.com/)
### installing on debian ### debian
#### mono #### mono
the packages you'll need are `mono-devel` and `gtk-sharp3`, so: the packages you'll need are `mono-devel` and `gtk-sharp3`, so:
``` ```
@ -19,7 +19,7 @@ sudo apt install mono-devel gtk-sharp3
#### dotnet #### dotnet
follow [these instructions](https://docs.microsoft.com/en-us/dotnet/core/install/linux-debian) to add the dotnet repo and install dotnet-sdk. follow [these instructions](https://docs.microsoft.com/en-us/dotnet/core/install/linux-debian) to add the dotnet repo and install dotnet-sdk.
### installing on arch ### arch linux
#### mono #### mono
``` ```
sudo pacman -S mono gtk-sharp-3 sudo pacman -S mono gtk-sharp-3
@ -29,7 +29,7 @@ sudo pacman -S mono gtk-sharp-3
sudo pacman -S dotnet-sdk sudo pacman -S dotnet-sdk
``` ```
### installing on windows ### windows
- download and install ".NET Core SDK" from [this page](https://dotnet.microsoft.com/download) - download and install ".NET Core SDK" from [this page](https://dotnet.microsoft.com/download)
- run `dotnet build` - this *should* pull in gtk3 automatically - if not, you'll need to [install it yourself](https://github.com/tschoonj/GTK-for-Windows-Runtime-Environment-Installer/releases/latest) - run `dotnet build` - this *should* pull in gtk3 automatically - if not, you'll need to [install it yourself](https://github.com/tschoonj/GTK-for-Windows-Runtime-Environment-Installer/releases/latest)