| 1 | /* Aseprite |
| 2 | Copyright (C) 2020-2022 Igara Studio S.A. |
| 3 | |
| 4 | This program is distributed under the terms of |
| 5 | the End-User License Agreement for Aseprite. */ |
| 6 | |
| 7 | #include "ver/info.h" |
| 8 | #include "generated_version.h" /* It defines the VERSION macro */ |
| 9 | |
| 10 | #define PACKAGE "Aseprite" |
| 11 | #define COPYRIGHT "Copyright (C) 2001-2022 Igara Studio S.A." |
| 12 | |
| 13 | #if defined(_WIN32) || defined(__APPLE__) |
| 14 | #define HTTP "https" |
| 15 | #else |
| 16 | #define HTTP "http" |
| 17 | #endif |
| 18 | |
| 19 | #ifdef CUSTOM_WEBSITE_URL |
| 20 | #define WEBSITE CUSTOM_WEBSITE_URL /* To test web server */ |
| 21 | #else |
| 22 | #define WEBSITE HTTP "://www.aseprite.org/" |
| 23 | #endif |
| 24 | #define WEBSITE_DOWNLOAD WEBSITE "download/" |
| 25 | #define WEBSITE_CONTRIBUTORS WEBSITE "contributors/" |
| 26 | #define HTTP "://blog.aseprite.org/rss" |
| 27 | #define WEBSITE_UPDATE WEBSITE "update/?xml=1" |
| 28 | |
| 29 | const char* get_app_name() { return PACKAGE; } |
| 30 | const char* get_app_version() { return VERSION; } |
| 31 | const char* get_app_copyright() { return COPYRIGHT; } |
| 32 | |
| 33 | const char* get_app_url() { return WEBSITE; } |
| 34 | const char* get_app_download_url() { return WEBSITE_DOWNLOAD; } |
| 35 | const char* get_app_contributors_url() { return WEBSITE_CONTRIBUTORS; } |
| 36 | const char* () { return WEBSITE_NEWS_RSS; } |
| 37 | const char* get_app_update_url() { return WEBSITE_UPDATE; } |
| 38 | |