Warning
This Repository has moved to GitLab and is now read-only
A fork of PeterAlert which allows multiple Goober Alerts to be created from their respective PNG File in the Assets Folder.
- Clone the Github Repo to somewhere
- Add/Replace PNGs in the Assets Folder
- Run the
build.ps1PowerShell Script
- Clone the Github Repo to somewhere
- Add/Replace Images / Audio in the Assets Folder
- Run the
manual_build.ps1PowerShell Script
build.ps1 is now demoted to a quick generation of a multitude of Goober Alerts.
The produced executables Name generated from build.ps1 depend on the Name of the PNG File in the Assets Folder, eg having a Lu The Shiny Thing.png File in the Assets Folder, will produce a "Lu The Shiny Thing Alert"
- Git and the .Net 8 SDK are required to Build the project
- The Project Namespace, Window Title, and Assembly File Name is named according to $Name
- This is done by a general replace of "Peter Alert" to $Name
- The OK Button is named according to $ButtonName
- This is done by a general replace of "OK" to $Name
- The App Icon is defined accoridng to $AppIcon
- This is done by a general replace of
Icon='/Assets/Peter.png'toIcon='$($AppIcon)'
- This is done by a general replace of
- The App Image is defined according to $AppImage
- This is done by a general replace of
avares://$($Name)/Assets/Peter.pngtoavares://$($Name)$($AppImage) - If a GIF was provided then
Source=is replaced byanim:ImageBehavior.AnimatedSource=
- This is done by a general replace of
- The Music Location is defined according to $Music
- This is done by a general replace of the following:
- The Namespace is replaced from
avares://Peter Alert/toavares://$($Name)/ - The Audio Location is replaced from
/Assets/audio.mp3to $Music - The Code comment
//Replace_with_audiois replaced byPlayAudio();to enable the Audio Function
- The Namespace is replaced from
- This is done by a general replace of the following:
- Audio on Linux requires the
sfmlandcsfmlSystem packages to be installed- I tried to include them as a NuGet package but this only solves the Library Issue on Windows, if you found a fix for this on Linux feel free to contribute
- The specific library that it can't find on Linux is
csfml-audio
- The specific library that it can't find on Linux is
- I tried to include them as a NuGet package but this only solves the Library Issue on Windows, if you found a fix for this on Linux feel free to contribute
- Git and the .Net 8 SDK are required to Build the project
- The use of the
build.ps1Script is to automatically replace each instance of the WordPeterwith the File name of the PNG File, this can be rewritten in another Language eg Bash or done manually as the WordPeteronly appears inside ofMainWindow.axamlandGooberAlert.csproj- After those words were replaced and dotnet published the executable, a
git reset --hardis done to revert the renaming and move onto the next PNG File
- After those words were replaced and dotnet published the executable, a
- Audio on Linux requires the
sfmlandcsfmlSystem packages to be installed