diff --git a/build.ps1 b/build.ps1 new file mode 100644 index 0000000..3b99cec --- /dev/null +++ b/build.ps1 @@ -0,0 +1,46 @@ +echo "" +echo "███████╗██╗ ██╗ ██╗███████╗██████╗ ██████╗ ████████╗" +echo "██╔════╝██║ ██║ ██║██╔════╝██╔══██╗██╔═══██╗╚══██╔══╝" +echo "█████╗ ██║ ██║ ██║█████╗ ██████╔╝██║ ██║ ██║ " +echo "██╔══╝ ██║ ██║ ██║██╔══╝ ██╔══██╗██║ ██║ ██║ " +echo "███████╗███████╗███████╗██║███████╗██████╔╝╚██████╔╝ ██║ " +echo "╚══════╝╚══════╝╚══════╝╚═╝╚══════╝╚═════╝ ╚═════╝ ╚═╝ " +echo "" +echo "Copyright © 2024 Toastie_t0ast & EllieBotDevs" +echo "" + +echo "" +echo "Publishing EllieBot" +echo "" + +echo "" +dotnet publish -c Release -r linux-x64 --self-contained -o elliebot-linux-x64 src/EllieBot/EllieBot.csproj +echo "" +dotnet publish -c Release -r linux-arm64 --self-contained -o elliebot-linux-arm64 src/EllieBot/EllieBot.csproj +echo "" +dotnet publish -c Release -r win-x64 --self-contained -o elliebot-windows-x64 src/EllieBot/EllieBot.csproj +echo "" +dotnet publish -c Release -r win-arm64 --self-contained -o elliebot-windows-arm64 src/EllieBot/EllieBot.csproj +echo "" +dotnet publish -c Release -r osx-x64 --self-contained -o elliebot-osx-x64 src/EllieBot/EllieBot.csproj +echo "" +dotnet publish -c Release -r osx-arm64 --self-contained -o elliebot-osx-arm64 src/EllieBot/EllieBot.csproj + +echo "" +echo "Preparing the Windows installer build." +echo "" + +dotnet clean +dotnet restore -f --no-cache -v n +dotnet publish -c Release --self-contained --runtime win-x64 /p:Version=5.1.3 src/EllieBot + +echo "" +echo "" +echo "Finished the initial build script" +echo "" +echo "To build the Windows installer please install Inno Setup from" +echo "https://jrsoftware.org/isdl.php" +echo "And compile the exe_builder.iss" +echo "" +echo "If you are running on Windows please run the wsl command" +echo "then run build.sh" \ No newline at end of file diff --git a/build.sh b/build.sh new file mode 100644 index 0000000..5944016 --- /dev/null +++ b/build.sh @@ -0,0 +1,18 @@ +echo "" +echo "Compressing build files" +echo "" + +tar cvf 5.1.3-linux-x64-build.tar elliebot-linux-x64/* +tar cvf 5.1.3-linux-arm64-build.tar elliebot-linux-arm64/* +tar cvf 5.1.3-osx-x64-build.tar elliebot-osx-x64/* +tar cvf 5.1.3-osx-arm64-build.tar elliebot-osx-arm64/* +zip -r 5.1.3-windows-x64-build.zip elliebot-windows-x64/* +zip -r 5.1.3-windows-arm64-build.zip elliebot-windows-arm64/* + +echo "" +echo "Moving the installer file you would have generated" +echo "if you followed the instructions in the bottom of the build.ps1 file" +echo "to the directory this script in run in." +echo "" + +#mv ellie-installers/5.1.3/ellie-setup-5.1.3.exe ellie-setup-5.1.3.exe \ No newline at end of file diff --git a/src/EllieBot/.editorconfig b/src/EllieBot/.editorconfig index 041e023..bc6d4d4 100644 --- a/src/EllieBot/.editorconfig +++ b/src/EllieBot/.editorconfig @@ -181,9 +181,9 @@ dotnet_naming_rule.private_readonly_field.symbols = private_readonly_field dotnet_naming_rule.private_readonly_field.style = begins_with_underscore dotnet_naming_rule.private_readonly_field.severity = warning -dotnet_naming_rule.private_field.symbols = private_field -dotnet_naming_rule.private_field.style = camel_case -dotnet_naming_rule.private_field.severity = warning +# dotnet_naming_rule.private_field.symbols = private_field +# dotnet_naming_rule.private_field.style = camel_case +# dotnet_naming_rule.private_field.severity = warning dotnet_naming_rule.const_fields.symbols = const_fields dotnet_naming_rule.const_fields.style = all_upper