Fix rdef mistakes for Nanosaur (#6911)

This commit is contained in:
Ivan Holmes
2022-05-12 01:25:17 +00:00
committed by GitHub
parent 9c957b051f
commit 8561309723
2 changed files with 5 additions and 3 deletions

View File

@@ -1,9 +1,9 @@
resource app_flags B_MULTIPLE_LAUNCH;
resource app_flags B_EXCLUSIVE_LAUNCH | B_ARGV_ONLY;
resource app_version {
major = @MAJOR@,
middle = @MIDDLE@,
minor = 0,
minor = @MINOR@,
variety = B_APPV_FINAL,
internal = 0,

View File

@@ -5,7 +5,7 @@ sent back in time 20 minutes before a giant asteroid hits the Earth."
HOMEPAGE="https://pangeasoft.net/nano"
COPYRIGHT="1998 Pangea Software, Inc."
LICENSE="CC-BY-NC-SA-4.0"
REVISION="4"
REVISION="5"
SOURCE_URI="https://github.com/jorio/Nanosaur/archive/refs/tags/v$portVersion.tar.gz"
CHECKSUM_SHA256="5458ed6bf7d58facd7adf30161680546148b2a4e187c336b8af02cb864188da0"
@@ -67,11 +67,13 @@ INSTALL()
local APP_SIGNATURE="application/x-vnd.nanosaur"
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
local MINOR="`echo "$portVersion" | cut -d. -f3`"
local LONG_INFO="$SUMMARY"
sed \
-e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \
-e "s|@MAJOR@|$MAJOR|" \
-e "s|@MIDDLE@|$MIDDLE|" \
-e "s|@MINOR@|$MINOR|" \
-e "s|@LONG_INFO@|$LONG_INFO|" \
$portDir/additional-files/nanosaur.rdef.in > $sourceDir/nanosaur.rdef