Skip to content

Commit c96f856

Browse files
Initial PupNet test
1 parent 292c035 commit c96f856

File tree

15 files changed

+362
-40
lines changed

15 files changed

+362
-40
lines changed

.github/workflows/linux.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: .NET Build + Publish
2+
3+
on:
4+
push:
5+
branches: [main, ui-rewrite]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-22.04
12+
13+
permissions:
14+
contents: write
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
- name: Setup .NET
19+
uses: actions/setup-dotnet@v4
20+
with:
21+
dotnet-version: 9.0.x
22+
- name: Install PupNet
23+
run: dotnet tool install -g KuiperZone.PupNet
24+
- name: Test PupNet
25+
run: pupnet --version
26+
# - name: Restore dependencies
27+
# run: dotnet restore
28+
# - name: Build
29+
# run: dotnet build --no-restore -p:PostBuildEvent=
30+
# - name: Publish Linux 64bit
31+
# if: ${{ github.event_name != 'pull_request' }}
32+
# run: dotnet publish --os linux --arch x64 -c Release --self-contained false MSUScripter/MSUScripter.csproj
33+
# - name: Get version number
34+
# if: ${{ github.event_name != 'pull_request' }}
35+
# id: version
36+
# run: |
37+
# $version = (Get-Item "MSUScripter\bin\Release\net9.0\win-x86\publish\MSUScripter.exe").VersionInfo.ProductVersion
38+
# $version = $version.Split("+")[0]
39+
# Write-Host $version
40+
# Write-Output "number=$version" >> $env:GITHUB_OUTPUT
41+
# shell: pwsh
42+
# - name: Upload artifact
43+
# uses: actions/upload-artifact@v4
44+
# if: ${{ github.event_name != 'pull_request' }}
45+
# with:
46+
# path: "setup/Output/*"
47+
# name: MSUScripter_${{ steps.version.outputs.number }}

.github/workflows/windows.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: .NET Build + Publish
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
build:
11+
runs-on: windows-2022
12+
13+
permissions:
14+
contents: write
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
- name: Setup .NET
19+
uses: actions/setup-dotnet@v4
20+
with:
21+
dotnet-version: 9.0.x
22+
- name: Restore dependencies
23+
run: dotnet restore
24+
- name: Build
25+
run: dotnet build --no-restore -p:PostBuildEvent=
26+
- name: Publish Windows 64bit
27+
if: ${{ github.event_name != 'pull_request' }}
28+
run: dotnet publish --os win --arch x64 -c Release --self-contained false MSUScripter/MSUScripter.csproj
29+
- name: Publish Windows 32bit
30+
if: ${{ github.event_name != 'pull_request' }}
31+
run: dotnet publish --os win --arch x86 -c Release --self-contained false MSUScripter/MSUScripter.csproj
32+
- name: Get version number
33+
if: ${{ github.event_name != 'pull_request' }}
34+
id: version
35+
run: |
36+
$version = (Get-Item "MSUScripter\bin\Release\net9.0\win-x86\publish\MSUScripter.exe").VersionInfo.ProductVersion
37+
$version = $version.Split("+")[0]
38+
Write-Host $version
39+
Write-Output "number=$version" >> $env:GITHUB_OUTPUT
40+
shell: pwsh
41+
- name: Building the Windows installer
42+
if: ${{ github.event_name != 'pull_request' }}
43+
run: '"%programfiles(x86)%/Inno Setup 6/iscc.exe" "Setup/MSUScripter.iss"'
44+
shell: cmd
45+
- name: Upload artifact
46+
uses: actions/upload-artifact@v4
47+
if: ${{ github.event_name != 'pull_request' }}
48+
with:
49+
path: "setup/Output/*"
50+
name: MSUScripter_${{ steps.version.outputs.number }}

.idea/.idea.MSUScripter/.idea/workspace.xml

Lines changed: 17 additions & 29 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[Desktop Entry]
2+
Type=Application
3+
Name=MSU Scripter
4+
Icon=mattequalscoder.msuscripter
5+
StartupWMClass=MSUScripter
6+
Comment=MSU Scripter
7+
Exec=/usr/bin/MSUScripter
8+
TryExec=/usr/bin/MSUScripter
9+
NoDisplay=false
10+
Terminal=true
11+
Categories=Utility;
12+
X-AppImage-Name=AppId
13+
X-AppImage-Version=AppVersion
14+
X-AppImage-Arch=PackageArch
15+
MimeType=
16+
Keywords=
57.2 MB
Binary file not shown.

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2023 MattEqualsCoder
3+
Copyright (c) 2023-2025 MattEqualsCoder
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

0 commit comments

Comments
 (0)