Add windows manifest

This commit is contained in:
Félix Saparelli 2022-01-23 01:17:11 +13:00
parent a86365cc57
commit 45fad1ef57
No known key found for this signature in database
GPG Key ID: B948C4BAE44FC474
4 changed files with 47 additions and 0 deletions

View File

@ -41,6 +41,7 @@ date=$(date +%Y-%m-%d)
echo "Next version to be $newver ($date), creating..."
sed -E -i "s/^version = \"$extver\"/version = \"$newver\"/" Cargo.toml
sed -E -i "s/^version=\"$extver.0\"/version=\"$newver.0\"/" cargo-watch.exe.manifest
sed -E -i "s/^version: \"$extver\"/version: \"$newver\"/1" CITATION.cff
sed -E -i "s/^date-released: .+$/date-released: $date/1" CITATION.cff

3
build.rs Normal file
View File

@ -0,0 +1,3 @@
fn main() {
embed_resource::compile("cargo-watch-manifest.rc");
}

2
cargo-watch-manifest.rc Normal file
View File

@ -0,0 +1,2 @@
#define RT_MANIFEST 24
1 RT_MANIFEST "watchexec.exe.manifest"

41
cargo-watch.exe.manifest Normal file
View File

@ -0,0 +1,41 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity
type="win32"
name="Watchexec.Cli.cargo-watch"
version="8.1.2.0"
/>
<trustInfo>
<security>
<!--
UAC settings:
- app should run at same integrity level as calling process
- app does not need to manipulate windows belonging to
higher-integrity-level processes
-->
<requestedPrivileges>
<requestedExecutionLevel level="asInvoker" uiAccess="false"/>
</requestedPrivileges>
</security>
</trustInfo>
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
<application>
<!-- Windows 10, 11 -->
<supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}"/>
<!-- Windows 8.1 -->
<supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}"/>
<!-- Windows 8 -->
<supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}"/>
</application>
</compatibility>
<application xmlns="urn:schemas-microsoft-com:asm.v3">
<windowsSettings xmlns:ws="http://schemas.microsoft.com/SMI/2020/WindowsSettings">
<ws:longPathAware xmlns:ws="http://schemas.microsoft.com/SMI/2016/WindowsSettings">true</ws:longPathAware>
<ws:activeCodePage xmlns:ws="http://schemas.microsoft.com/SMI/2019/WindowsSettings">UTF-8</ws:activeCodePage>
<ws:heapType xmlns:ws="http://schemas.microsoft.com/SMI/2020/WindowsSettings">SegmentHeap</ws:heapType>
</windowsSettings>
</application>
</assembly>