Skip to content

Commit 3f07af1

Browse files
Update Linux build
1 parent 11f3fdc commit 3f07af1

File tree

3 files changed

+65
-3
lines changed

3 files changed

+65
-3
lines changed

.github/workflows/linux.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,20 @@ jobs:
1919
uses: actions/setup-dotnet@v4
2020
with:
2121
dotnet-version: 9.0.x
22+
- name: Restore dependencies
23+
run: dotnet restore
24+
- name: Publish Windows 32bit
25+
if: ${{ github.event_name != 'pull_request' }}
26+
run: dotnet publish --os win --arch x86 -c Release --self-contained false MSUScripter/MSUScripter.csproj
27+
- name: Get version number
28+
if: ${{ github.event_name != 'pull_request' }}
29+
id: version
30+
run: |
31+
$version = (Get-Item "MSUScripter\bin\Release\net9.0\win-x86\publish\MSUScripter.exe").VersionInfo.ProductVersion
32+
$version = $version.Split("+")[0]
33+
Write-Host $version
34+
Write-Output "number=$version" >> $env:GITHUB_OUTPUT
35+
shell: pwsh
2236
- name: Install PupNet
2337
run: dotnet tool install -g KuiperZone.PupNet
2438
- name: Download AppImageTool
@@ -28,6 +42,12 @@ jobs:
2842
appimagetool-x86_64.AppImage --version
2943
- name: Run PupNet
3044
run: pupnet --kind appimage -y
45+
- name: Upload artifact
46+
uses: actions/upload-artifact@v4
47+
if: ${{ github.event_name != 'pull_request' }}
48+
with:
49+
path: "Deploy/OUT/MSUScripter*"
50+
name: MSUScripter_${{ steps.version.outputs.number }}
3151

3252
# - name: Restore dependencies
3353
# run: dotnet restore

MSUScripter.pupnet.conf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ AppBaseName = MSUScripter
1616
AppFriendlyName = MSU Scripter
1717

1818
# Mandatory application ID in reverse DNS form. The value should stay constant for lifetime of the software.
19-
AppId = mattequalscoder.msuscripter
19+
AppId = org.mattequalscoder.msuscripter
2020

2121
# Mandatory application version and package release of form: 'VERSION[RELEASE]'. Use optional square
2222
# brackets to denote package release, i.e. '1.2.3[1]'. Release refers to a change to the deployment
@@ -65,7 +65,7 @@ PublisherName = MattEqualsCoder
6565
# Publisher ID in reverse DNS form. Invariably, this would be the same as AppId, excluding the app leaf
6666
# name. The value populates the ${PUBLISHER_ID} macro used AppStream metainfo. If omitted, defaults to
6767
# the leading parts of AppId. It is highly recommended to specify the value explicitly.
68-
PublisherId = mattequalscoder
68+
PublisherId = org.mattequalscoder
6969

7070
# Optional copyright statement.
7171
PublisherCopyright = Copyright (C) MattEqualsCoder 2023-25
@@ -121,7 +121,7 @@ PrimeCategory = Utility
121121
# Path to AppStream metadata file. It is optional, but recommended as it is used by software centers.
122122
# Note. The contents of the files may use macro variables. Use 'pupnet --help macro' for reference.
123123
# See: https://docs.appimage.org/packaging-guide/optional/appstream.html
124-
# MetaFile = Deploy/app.metainfo.xml
124+
MetaFile = MSUScripter/Assets/app.metainfo.xml
125125

126126
# Optional icon file paths. The value may include multiple filenames separated with semicolon or given
127127
# in multi-line form. Valid types are SVG, PNG and ICO (ICO ignored on Linux). Note that the inclusion
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<component type="desktop-application">
3+
<metadata_license>MIT</metadata_license>
4+
5+
<id>${APP_ID}</id>
6+
<name>${APP_FRIENDLY_NAME}</name>
7+
<summary>${APP_SHORT_SUMMARY}</summary>
8+
<url type="homepage">${PUBLISHER_LINK_URL}</url>
9+
<project_license>${APP_LICENSE_ID}</project_license>
10+
<content_rating type="oars-1.1" />
11+
12+
<developer id="${PUBLISHER_ID}">
13+
<name>${PUBLISHER_NAME}</name>
14+
</developer>
15+
16+
<launchable type="desktop-id">${APP_ID}.desktop</launchable>
17+
18+
<description>
19+
${APPSTREAM_DESCRIPTION_XML}
20+
</description>
21+
22+
<!-- Freedesktop Categories -->
23+
<categories>
24+
<category>${PRIME_CATEGORY}</category>
25+
</categories>
26+
27+
<keywords>
28+
<keyword>development</keyword>
29+
<keyword>programming</keyword>
30+
</keywords>
31+
32+
<screenshots>
33+
<screenshot type="default">
34+
<image>https://private-user-images.githubusercontent.com/63823784/356325792-a31f393d-7b62-4550-b475-c754404332bd.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NTg1NDgzMzMsIm5iZiI6MTc1ODU0ODAzMywicGF0aCI6Ii82MzgyMzc4NC8zNTYzMjU3OTItYTMxZjM5M2QtN2I2Mi00NTUwLWI0NzUtYzc1NDQwNDMzMmJkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTA5MjIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwOTIyVDEzMzM1M1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTEzZjI5ZDc5ZThmMjExZDc3OTIwOGMwYTUyNDA3M2Y4MzUzYjU4YTUxMzliYzQzYjYzOWQyNzVkZDZjNTU2MzQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.KO9do_00DMvZSFlkft31g9sVz25VfRG9e0pk_UcNrpU</image>
35+
</screenshot>
36+
</screenshots>
37+
38+
<releases>
39+
${APPSTREAM_CHANGELOG_XML}
40+
</releases>
41+
42+
</component>

0 commit comments

Comments
 (0)