mirror of
https://github.com/QB64-Phoenix-Edition/QB64pe.git
synced 2024-07-01 15:00:38 +00:00
Verify Windows executable has version information
windres has a handy feature of allowing us to feed it an executable and it will give an error code depending on whether that executable has a resource section or not. We can use that feature to create a quick test to verify the distributable has the resource information on it.
This commit is contained in:
parent
c165476838
commit
55a4d1af1c
|
@ -17,6 +17,10 @@ cd $1
|
|||
# Specific steps for each platform
|
||||
case "$2" in
|
||||
win)
|
||||
# Verify that the Resource information was correctly applied
|
||||
# windres returns an error if the exe has no resource section
|
||||
windresResult=$($ROOT/internal/c/c_compiler/bin/windres.exe -i ./qb64.exe)
|
||||
assert_success_named "Windows Resource Section" printf "\n$windresResult\n"
|
||||
;;
|
||||
|
||||
lnx)
|
||||
|
|
Loading…
Reference in a new issue