Skip to content

Commit

Permalink
Github workflows might work
Browse files Browse the repository at this point in the history
  • Loading branch information
kotah81 committed Oct 24, 2024
1 parent 1be6a7c commit 2e0c2c4
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net

name: Build ovenredemption

on:
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true

jobs:
build:

strategy:
fail-fast: false
matrix:
os: [windows-latest]
configuration: [Release]

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Publish
run: dotnet publish -c ${{ matrix.configuration }} -r win-x86 --output ${{ matrix.os }}
- name: Upload OR
uses: actions/upload-artifact@v4
with:
name: "ovenredemption-compiled"
path: "./${{ matrix.os }}"
5 changes: 5 additions & 0 deletions OvenRedemption/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ public void TriggerClearEverything()
#region Object Events
private void SetupBorder_Click(object sender, RoutedEventArgs e)
{
if ((float)Launcher.State > 50) return;
OpenFileDialog OFD = new();
OFD.Filter = "Redemption ZIP (*.zip)|*.zip";

Expand All @@ -141,6 +142,7 @@ private void SetupBorder_Click(object sender, RoutedEventArgs e)

private void OnZIPDropped(object sender, DragEventArgs e)
{
if ((float)Launcher.State > 50) return;
if (e.Data.GetDataPresent(DataFormats.FileDrop))
{
string[] Files = (string[])e.Data.GetData(DataFormats.FileDrop);
Expand All @@ -150,6 +152,9 @@ private void OnZIPDropped(object sender, DragEventArgs e)

private void LaunchButton_Click(object sender, RoutedEventArgs e)
{
if (!Launcher.CanLaunch) return;
if ((float)Launcher.State > 50) return;

if (Launcher.PreviousInstall)
{
ClearButton.IsEnabled = false;
Expand Down
1 change: 1 addition & 0 deletions OvenRedemption/OvenRedemption.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net8.0-windows</TargetFramework>
<EnableWindowsTargeting>true</EnableWindowsTargeting>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<UseWPF>true</UseWPF>
Expand Down

0 comments on commit 2e0c2c4

Please sign in to comment.