Add support for Versions.

This commit is contained in:
Jeremy Rand 2022-03-26 12:37:29 -04:00
parent 051930c076
commit f36bb10f54
3 changed files with 59 additions and 2 deletions

View File

@ -12,7 +12,7 @@
<key>Binary.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>4</integer>
<integer>3</integer>
</dict>
<key>DiskImage.xcscheme_^#shared#^_</key>
<dict>
@ -27,7 +27,7 @@
<key>doNotBuild.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>3</integer>
<integer>4</integer>
</dict>
</dict>
</dict>

View File

@ -13,5 +13,16 @@
#define windowRes 1001
/* Update Info */
#define UPDATE_INFO 1
/* Strings */
#define DISPLAY_NAME_STR 2000
#define AUTHOR_NAME_STR 2001
#define DOWNLOAD_URL_STR 2002
#define ARCHIVE_STR 2003
#define VERSIONS_DATA_FILE_STR 2004
#endif /* defined(_GUARD_PROJECTListener_FILEmain_) */

View File

@ -26,6 +26,52 @@ resource rVersion (1) {
};
/* Update info */
#define rUpdateInfo $DEAD /* RIP Jerry Garcia */
/*--------------------- rUpdateInfo -------------------------*/
type rUpdateInfo {
integer = 0; /* version must be zero */
longint; /* Resource ID of string holding app's display name */
longint; /* ID of string holding author's name */
longint; /* ID of string URL to the downloads folder */
longint; /* ID of string for downloadable archive name */
longint; /* ID of string for Versions.List data file */
};
resource rPString (DISPLAY_NAME_STR, $0000) {
"Listener"
};
resource rPString (AUTHOR_NAME_STR, $0000) {
"Jeremy Rand"
};
resource rPString (DOWNLOAD_URL_STR, $0000) {
"http://downloads.rand-emonium.com/files/"
};
resource rPString (ARCHIVE_STR, $0000) {
"Listener092.shk"
};
resource rPString (VERSIONS_DATA_FILE_STR, $0000) {
"jrand"
};
resource rUpdateInfo (UPDATE_INFO, $0000) {
DISPLAY_NAME_STR, // app's display name
AUTHOR_NAME_STR, // author's name
DOWNLOAD_URL_STR, // URL to downloads folder
ARCHIVE_STR, // Name of downloadable archive
VERSIONS_DATA_FILE_STR // Name of data file for Versions.List
};
resource rWindParam1 (windowRes) {
$C0A5, /* wFrameBits */
nil, /* wTitle */