Skip to content

Commit e8d1e1a

Browse files
committed
UpdateCheckAPI 2.1.0 release
1 parent 0dc340f commit e8d1e1a

File tree

15 files changed

+57
-29
lines changed

15 files changed

+57
-29
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# code that other projects can include, it is not a buildable project on its
77
# own.
88

9-
cmake_minimum_required (VERSION 3.0)
9+
cmake_minimum_required (VERSION 3.10)
1010

1111
# Root to the UpdateCheckApi directory.
1212
set (UPDATECHECKAPI_DIR ${CMAKE_CURRENT_SOURCE_DIR})

README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
11
# UpdateCheckAPI
2-
32
The UpdateCheckAPI repository provides utility source code for AMD Tools to check for new releases available through GitHub's Release API. The code also provides a Qt-based dialog that can be used to display the results of the check for updates.
43

54
## Usage:
6-
75
Projects that want to utilize UpdateCheckAPI can do so using CMake's add_subdirectory(<path to UpdateCheckAPI>) command. UpdateCheckAPI contains a CMakeLists.txt which defines several other cached variables that identify the various files that are necessary to use UpdateCheckAPI:
8-
96
* UPDATECHECKAPI_SRC (source files)
107
* UPDATECHECKAPI_INC (header files)
118
* UPDATECHECKAPI_INC_DIRS (additional include directories)
129
* UPDATECHECKAPI_LIBS (required libraries)
1310
* UPDATECHECKAPI_LIB_DIRS (additional library directories)
1411

1512
Additional CMake variables are also defined to utilize the Qt widgets:
16-
1713
* UPDATECHECKAPI_QT_SRC (source files which reference Qt components)
1814
* UPDATECHECKAPI_QT_INC (header files which reference Qt components)
1915
* UPDATECHECKAPI_QT_UI (ui files for the new widgets)
2016

21-
Also, the UpdateCheckAPI utilizes an executabled named rtda to download files from the internet. This needs to copied into the applications working directory. To simplify copying the executable, its platform-specific path is cached in the CMake variable:
22-
17+
Also, the UpdateCheckAPI utilizes an executable named rtda to download files from the internet. This needs to copied into the application's working directory. To simplify copying the executable, its platform-specific path is cached in the CMake variable:
2318
* RTDA_PATH (Path to the platform-specific rtda executable)
2419

2520
## Release Notes:
21+
Version 2.1.0
22+
* An optional PackageName tag has been added to the DownloadLinks which allows for customizing the text that will appear in the UI in place of the package type.
23+
* RTDA now has a --version cmd line option to report both the RTDA and UpdateCheckAPI version numbers.
24+
* Add RTDA binaries to git lfs.
25+
2626
Version 2.0.1
2727
* Fix the close button on Update Check Results dialog.
2828

@@ -40,3 +40,4 @@ Version 1.0.1
4040

4141
Version 1.0
4242
* Initial release
43+

rtda/.gitattributes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
windows/rtda.exe filter=lfs diff=lfs merge=lfs -text
2+
linux/rtda filter=lfs diff=lfs merge=lfs -text
3+
macos/rtda filter=lfs diff=lfs merge=lfs -text

rtda/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#=================================================================
44
# CMakeList.txt : CMake project to compile radeon_tools_download_assistant.go
55
#
6-
cmake_minimum_required(VERSION 2.8.11)
6+
cmake_minimum_required(VERSION 3.10)
77

88
# Make a target that other projects can add as a dependency.
99
add_custom_target(rtda)

rtda/README.txt

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
#=================================================================
2-
# Copyright 2018-2020 Advanced Micro Devices, Inc. All rights reserved.
2+
# Copyright 2018-2022 Advanced Micro Devices, Inc. All rights reserved.
33
#=================================================================
44
In order to build this project:
55

66
1) Download and install the Go tools from here: https://golang.org/doc/install
7-
2) Make any changes to the radeon_tools_download_assistant.go file.
8-
3) cd into the rtda directory.
9-
4) Compile it with the command: "go build"
7+
2) Update rtda.rc if there needs to be an updated version number.
8+
2b) If on Windows, run generate_syso.bat. This will convert the rtda.rc file into a versioninfo.syso file that will automatically get embedded in the resulting executable so that the file properties in Windows are properly filled in.
9+
3) Make any changes to the radeon_tools_download_assistant.go file.
10+
4) cd into the rtda directory.
11+
5) Compile it with the command: "go build"
1012
* If there are compiler errors, they will be printed.
1113
* If the compilation is successful, nothing will get printed.
12-
5) You should find an updated rtda.exe in the local directory.
14+
6) You should find an updated rtda.exe in the local directory. Make sure to run it manually from the command line to ensure it works properly. If you get an "access is denied" error, there may be coding errors that are preventing it from running properly.
1315

1416
NOTE: The name of the compiled binary file is automatically selected from the project directory, not the source files, so in order to change the generated binary filename, the project directory name must also change.

rtda/linux/rtda

-5.8 MB
Binary file not shown.

rtda/macos/rtda

-5.89 MB
Binary file not shown.

rtda/radeon_tools_download_assistant.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,19 @@ import (
88
"os"
99
)
1010

11+
var rtda_version = "1.0.1"
12+
var update_check_api_version = "2.1.0"
13+
1114
func main() {
1215

1316
argCount := len(os.Args[1:])
17+
18+
if (argCount == 1 && os.Args[1] == "--version") {
19+
fmt.Printf("RTDA version: %s\n", rtda_version)
20+
fmt.Printf("UpdateCheckAPI version: %s\n", update_check_api_version)
21+
os.Exit(0)
22+
}
23+
1424
if (argCount != 2) {
1525
fmt.Printf("Usage: rtda url local_path\n")
1626
fmt.Printf("\turl - The url to the file to download\n")

rtda/rtda.rc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
1 VERSIONINFO
2-
FILEVERSION 1,0,0,0
3-
PRODUCTVERSION 1,0,0,0
2+
FILEVERSION 1,0,1,0
3+
PRODUCTVERSION 1,0,1,0
44
FILEFLAGSMASK 0X3FL
55
FILEFLAGS 0L
66
FILEOS 0X40004L
@@ -14,9 +14,9 @@ BEGIN
1414
VALUE "CompanyName", "Advanced Micro Devices, Inc."
1515
VALUE "FileDescription", "Radeon Tools Download Assistant"
1616
VALUE "OriginalFilename", "rtda" ".exe"
17-
VALUE "LegalCopyright", "Copyright (C) 2018-2020 Advanced Micro Devices, Inc. All rights reserved."
17+
VALUE "LegalCopyright", "Copyright (C) 2018-2021 Advanced Micro Devices, Inc. All rights reserved."
1818
VALUE "ProductName", "Radeon Tools Download Assistant"
19-
VALUE "ProductVersion", "1.0.0.0"
19+
VALUE "ProductVersion", "1.0.1.0"
2020
END
2121
END
2222
BLOCK "VarFileInfo"

rtda/windows/rtda.exe

-5.6 MB
Binary file not shown.

0 commit comments

Comments
 (0)