Update .forgejo/workflows/Installer_Windows-AMD64-Nightly.yaml

This commit is contained in:
Internet Addict 2025-02-17 20:16:20 +00:00
parent 43b1fdd76e
commit bb697f77b9

View file

@ -34,51 +34,51 @@ jobs:
# Convert the PNG to a Windows ICO file with multiple sizes using ImageMagick. # Convert the PNG to a Windows ICO file with multiple sizes using ImageMagick.
# This command auto-resizes to common icon sizes: 256, 128, 64, 48, 32, and 16. # This command auto-resizes to common icon sizes: 256, 128, 64, 48, 32, and 16.
magick convert icon.png -define icon:auto-resize=256,128,64,48,32,16 icon.ico magick icon.png -define icon:auto-resize=256,128,64,48,32,16 icon.ico
# Create dynamic app.manifest with DATE as version (appending .0 to meet version format) # Create dynamic app.manifest with DATE as version (appending .0 to meet version format)
cat <<EOF > app.manifest cat <<EOF > app.manifest
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity <assemblyIdentity
name="Spitfire Installer" name="Spitfire Installer"
version="${DATE}.0" version="${DATE}.0"
processorArchitecture="*" processorArchitecture="*"
type="win32"/> type="win32"/>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3"> <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
<security> <security>
<requestedPrivileges> <requestedPrivileges>
<requestedExecutionLevel level="asInvoker" uiAccess="false"/> <requestedExecutionLevel level="asInvoker" uiAccess="false"/>
</requestedPrivileges> </requestedPrivileges>
</security> </security>
</trustInfo> </trustInfo>
<application xmlns="urn:schemas-microsoft-com:asm.v3"> <application xmlns="urn:schemas-microsoft-com:asm.v3">
<windowsSettings> <windowsSettings>
<dpiAware>true/PM</dpiAware> <dpiAware>true/PM</dpiAware>
</windowsSettings> </windowsSettings>
</application> </application>
</assembly> </assembly>
EOF EOF
# Create version info JSON with dynamic version and website URLs in Comments # Create version info JSON with dynamic version and website URLs in Comments
cat <<EOF > versioninfo.json cat <<EOF > versioninfo.json
{ {
"Version": { "Version": {
"Major": 0, "Major": 0,
"Minor": 0, "Minor": 0,
"Patch": 0, "Patch": 0,
"Build": 0 "Build": 0
}, },
"CompanyName": "Spitfire Browser", "CompanyName": "Spitfire Browser",
"FileDescription": "Official Installer for Spitfire Browser", "FileDescription": "Official Installer for Spitfire Browser",
"FileVersion": "${DATE}.0", "FileVersion": "${DATE}.0",
"InternalName": "spitfire-installer", "InternalName": "spitfire-installer",
"LegalCopyright": "Copyright © Spitfire Browser", "LegalCopyright": "Copyright © Spitfire Browser",
"OriginalFilename": "spitfire-installer.exe", "OriginalFilename": "spitfire-installer.exe",
"ProductName": "Spitfire Browser", "ProductName": "Spitfire Browser",
"ProductVersion": "${DATE}.0", "ProductVersion": "${DATE}.0",
"Comments": "Official website: https://spitfirebrowser.xyz; Source/Dev website: https://weforge.xyz" "Comments": "Official website: https://spitfirebrowser.xyz; Source/Dev website: https://weforge.xyz"
} }
EOF EOF
# Generate the resource file embedding manifest, version info, and the icon. # Generate the resource file embedding manifest, version info, and the icon.