win32: Add files for appx building
This is quite sloppy but it should get the job done.
24
.github/workflows/windows-build.yml
vendored
@ -55,9 +55,28 @@ jobs:
|
||||
msbuild win32\hexchat.sln /m /verbosity:minimal /p:Configuration=Release /p:Platform=${{ matrix.platform }}
|
||||
shell: cmd
|
||||
|
||||
- name: Creating Appx
|
||||
run: |
|
||||
cp -r ..\hexchat-build\${{ matrix.platform }}\rel ..\hexchat-appx
|
||||
.\win32\version-template.ps1 win32\AppxManifest.xml.in $(Join-Path $(Resolve-Path ..\hexchat-appx) AppxManifest.xml)
|
||||
cd ..\hexchat-appx
|
||||
rm plugins\hcperl.dll
|
||||
rm plugins\hcpython2.dll
|
||||
rm plugins\hcpython3.dll
|
||||
rm plugins\hcupd.dll
|
||||
rm -r python
|
||||
rm *.pyd
|
||||
rm WinSparkle.dll
|
||||
rm portable-mode
|
||||
rm hexchat-text.exe
|
||||
rm thememan.exe
|
||||
makeappx pack /d . /p hexchat-${{ matrix.arch }}.appx
|
||||
shell: powershell
|
||||
|
||||
- name: Preparing Artifacts
|
||||
run: |
|
||||
move ..\hexchat-build\${{ matrix.platform }}\HexChat*.exe .\
|
||||
move ..\hexchat-appx\hexchat-${{ matrix.arch }}.appx .\
|
||||
move ..\hexchat-build .\
|
||||
shell: cmd
|
||||
|
||||
@ -70,3 +89,8 @@ jobs:
|
||||
with:
|
||||
name: Build Files ${{ matrix.arch }}
|
||||
path: hexchat-build
|
||||
|
||||
- uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: Appx Files ${{ matrix.arch }}
|
||||
path: hexchat-${{ matrix.arch }}.appx
|
||||
|
52
win32/AppxManifest.xml.in
Normal file
@ -0,0 +1,52 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Package xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10"
|
||||
xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10"
|
||||
xmlns:uap3="http://schemas.microsoft.com/appx/manifest/uap/windows10/3"
|
||||
xmlns:uap10="http://schemas.microsoft.com/appx/manifest/uap/windows10/10"
|
||||
xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities" IgnorableNamespaces="uap uap3 uap10 rescap">
|
||||
<Identity Name="39215TingPing.HexChat" Publisher="CN=0330FC06-4EE0-4AAB-8FB9-F9B6C1FA037F" Version="<#= [string]::Join('.', $versionParts) #>.0" ProcessorArchitecture="x86" />
|
||||
<Properties>
|
||||
<DisplayName>HexChat</DisplayName>
|
||||
<PublisherDisplayName>TingPing</PublisherDisplayName>
|
||||
<Description>Chat Client</Description>
|
||||
<Logo>Assets\StoreLogo.png</Logo>
|
||||
<uap10:PackageIntegrity>
|
||||
<uap10:Content Enforcement="on" />
|
||||
</uap10:PackageIntegrity>
|
||||
</Properties>
|
||||
<Resources>
|
||||
<Resource Language="en-us" />
|
||||
<Resource uap:Scale="100" />
|
||||
<Resource uap:Scale="125" />
|
||||
<Resource uap:Scale="150" />
|
||||
<Resource uap:Scale="200" />
|
||||
<Resource uap:Scale="400" />
|
||||
</Resources>
|
||||
<Dependencies>
|
||||
<TargetDeviceFamily Name="Windows.Desktop" MinVersion="10.0.17763.0" MaxVersionTested="10.0.19041.1" />
|
||||
<PackageDependency Name="Microsoft.VCLibs.140.00.UWPDesktop" MinVersion="14.0.24217.0" Publisher="CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US" />
|
||||
</Dependencies>
|
||||
<Capabilities>
|
||||
<rescap:Capability Name="runFullTrust" />
|
||||
</Capabilities>
|
||||
<Applications>
|
||||
<Application Id="HexChat" Executable="hexchat.exe" EntryPoint="Windows.FullTrustApplication">
|
||||
<uap:VisualElements DisplayName="HexChat" Description="HexChat" BackgroundColor="transparent" Square150x150Logo="Assets\AppMedTile.png" Square44x44Logo="Assets\AppList.png">
|
||||
</uap:VisualElements>
|
||||
<Extensions>
|
||||
<uap3:Extension Category="windows.protocol">
|
||||
<uap3:Protocol Name="irc" Parameters="--url="%1"">
|
||||
<uap:DisplayName>IRC</uap:DisplayName>
|
||||
<uap:Logo>Assets\irc.png</uap:Logo>
|
||||
</uap3:Protocol>
|
||||
</uap3:Extension>
|
||||
<uap3:Extension Category="windows.protocol">
|
||||
<uap3:Protocol Name="ircs" Parameters="--url="%1"">
|
||||
<uap:DisplayName>IRCS</uap:DisplayName>
|
||||
<uap:Logo>Assets\irc.png</uap:Logo>
|
||||
</uap3:Protocol>
|
||||
</uap3:Extension>
|
||||
</Extensions>
|
||||
</Application>
|
||||
</Applications>
|
||||
</Package>
|
BIN
win32/Assets/AppList.png
Normal file
After Width: | Height: | Size: 11 KiB |
BIN
win32/Assets/AppMedTile.png
Normal file
After Width: | Height: | Size: 11 KiB |
BIN
win32/Assets/HEXCHAT-Square150x150Logo.scale-100.png
Normal file
After Width: | Height: | Size: 3.5 KiB |
BIN
win32/Assets/HEXCHAT-Square150x150Logo.scale-125.png
Normal file
After Width: | Height: | Size: 4.5 KiB |
BIN
win32/Assets/HEXCHAT-Square150x150Logo.scale-150.png
Normal file
After Width: | Height: | Size: 5.6 KiB |
BIN
win32/Assets/HEXCHAT-Square150x150Logo.scale-200.png
Normal file
After Width: | Height: | Size: 8.1 KiB |
BIN
win32/Assets/HEXCHAT-Square150x150Logo.scale-400.png
Normal file
After Width: | Height: | Size: 23 KiB |
BIN
win32/Assets/HEXCHAT-Square310x310Logo.scale-100.png
Normal file
After Width: | Height: | Size: 8.5 KiB |
BIN
win32/Assets/HEXCHAT-Square310x310Logo.scale-125.png
Normal file
After Width: | Height: | Size: 11 KiB |
BIN
win32/Assets/HEXCHAT-Square310x310Logo.scale-150.png
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
win32/Assets/HEXCHAT-Square310x310Logo.scale-200.png
Normal file
After Width: | Height: | Size: 24 KiB |
BIN
win32/Assets/HEXCHAT-Square310x310Logo.scale-400.png
Normal file
After Width: | Height: | Size: 79 KiB |
BIN
win32/Assets/HEXCHAT-Square44x44Logo.scale-100.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
win32/Assets/HEXCHAT-Square44x44Logo.scale-125.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
win32/Assets/HEXCHAT-Square44x44Logo.scale-150.png
Normal file
After Width: | Height: | Size: 2.0 KiB |
BIN
win32/Assets/HEXCHAT-Square44x44Logo.scale-200.png
Normal file
After Width: | Height: | Size: 2.8 KiB |
BIN
win32/Assets/HEXCHAT-Square44x44Logo.scale-400.png
Normal file
After Width: | Height: | Size: 6.5 KiB |
BIN
win32/Assets/HEXCHAT-Square44x44Logo.targetsize-16.png
Normal file
After Width: | Height: | Size: 617 B |
After Width: | Height: | Size: 617 B |
BIN
win32/Assets/HEXCHAT-Square44x44Logo.targetsize-24.png
Normal file
After Width: | Height: | Size: 906 B |
After Width: | Height: | Size: 906 B |
BIN
win32/Assets/HEXCHAT-Square44x44Logo.targetsize-256.png
Normal file
After Width: | Height: | Size: 11 KiB |
After Width: | Height: | Size: 11 KiB |
BIN
win32/Assets/HEXCHAT-Square44x44Logo.targetsize-32.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 1.2 KiB |
BIN
win32/Assets/HEXCHAT-Square44x44Logo.targetsize-48.png
Normal file
After Width: | Height: | Size: 1.8 KiB |
After Width: | Height: | Size: 1.8 KiB |
BIN
win32/Assets/HEXCHAT-Square71x71Logo.scale-100.png
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
win32/Assets/HEXCHAT-Square71x71Logo.scale-125.png
Normal file
After Width: | Height: | Size: 2.5 KiB |
BIN
win32/Assets/HEXCHAT-Square71x71Logo.scale-150.png
Normal file
After Width: | Height: | Size: 2.3 KiB |
BIN
win32/Assets/HEXCHAT-Square71x71Logo.scale-200.png
Normal file
After Width: | Height: | Size: 3.2 KiB |
BIN
win32/Assets/HEXCHAT-Square71x71Logo.scale-400.png
Normal file
After Width: | Height: | Size: 7.6 KiB |
BIN
win32/Assets/HEXCHAT-Wide310x150Logo.scale-100.png
Normal file
After Width: | Height: | Size: 3.7 KiB |
BIN
win32/Assets/HEXCHAT-Wide310x150Logo.scale-125.png
Normal file
After Width: | Height: | Size: 4.8 KiB |
BIN
win32/Assets/HEXCHAT-Wide310x150Logo.scale-150.png
Normal file
After Width: | Height: | Size: 6.0 KiB |
BIN
win32/Assets/HEXCHAT-Wide310x150Logo.scale-200.png
Normal file
After Width: | Height: | Size: 8.7 KiB |
BIN
win32/Assets/HEXCHAT-Wide310x150Logo.scale-400.png
Normal file
After Width: | Height: | Size: 25 KiB |
BIN
win32/Assets/StoreLogo.png
Normal file
After Width: | Height: | Size: 11 KiB |
BIN
win32/Assets/irc.png
Normal file
After Width: | Height: | Size: 2.3 KiB |
@ -56,6 +56,7 @@
|
||||
<None Include="$(HexChatBin)thememan.exe" />
|
||||
<None Include="changelog.url" />
|
||||
<None Include="readme.url" />
|
||||
<None Include="..\Assets\*" />
|
||||
|
||||
<None Include="$(DepsRoot)\bin\lua51.dll" />
|
||||
<None Include="$(DepsRoot)\bin\girepository-1.0-1.dll" />
|
||||
|