Skip to content

Commit 4bcd2b2

Browse files
committed
Remove prebuild gdrive/dropbox/curl versions because of notarisation issues
1 parent a12683b commit 4bcd2b2

22 files changed

+19
-6585
lines changed

Project/Sources/Classes/FileTransfer_Dropbox.4dm

+2-4
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,10 @@ Class constructor()
22
This:C1470.onData:=New object:C1471("text"; "")
33
If (Is macOS:C1572)
44
This:C1470._return:=Char:C90(10)
5-
$path:=Get 4D folder:C485(Current resources folder:K5:16)+"Dropbox"+Folder separator:K24:12+"dbxcli"
6-
This:C1470._Path:=Convert path system to POSIX:C1106($path)
5+
This:C1470._Path:="dbxcli"
76
Else
87
This:C1470._return:=Char:C90(10) //Char(13)+Char(10)
9-
$path:=Get 4D folder:C485(Current resources folder:K5:16)+"Dropbox"+Folder separator:K24:12+"dbxcli.exe"
10-
This:C1470._Path:=Convert path system to POSIX:C1106($path)
8+
This:C1470._Path:="dbxcli.exe"
119
End if
1210
This:C1470._timeout:=0
1311

Project/Sources/Methods/test_GDrive.4dm

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
var $ftp : cs:C1710.FileTransfer_GDrive
33
$ftp:=cs:C1710.FileTransfer_GDrive.new()
44

5+
//$path:=Get 4D folder(Current resources folder)+"gdrive"+Folder separator+"gdrive.exe"
6+
$ftp.setPath(" /Users/thomas/Desktop/gdrive")
57

68
If (False:C215)
79
$result:=$ftp.version()

Project/Sources/Methods/test_dropbox.4dm

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
//%attributes = {}
22
var $ftp : cs:C1710.FileTransfer_Dropbox
33
$ftp:=cs:C1710.FileTransfer_Dropbox.new()
4-
//$ftp.setPath(" /Users/thomas/Desktop/dbxcli")
54

5+
$ftp.setPath(" /Users/thomas/Desktop/dbxcli")
6+
// $path:=Get 4D folder(Current resources folder)+"Dropbox"+Folder separator+"dbxcli.exe"
67

78
If (False:C215)
89
$source:="/"

Readme_GDrive.MD

+4-5
Original file line numberDiff line numberDiff line change
@@ -47,18 +47,17 @@ The tool is written in the language 'go', which allows a compilation of an execu
4747

4848
You can compile it yourself (see instruction in link above), download a precompiled version from Dropbox's github account or use the enclosed one.
4949

50-
The enclosed one was download February 2022 (Version 3.00). To ease usage/testing on Mac the downloaded version was signed by me (using an Apple certificate from 4D Germany).
50+
To use and deploy we advise to download yourself from github/releases.
5151

52-
To use and deploy we advise to download yourself from github/releases, sign it, and then sign/notarize the embedding 4D application.
52+
For Windows, just copy in resource folder for easy deployment.
53+
For Mac: sign it, and then sign/notarize the embedding 4D application.
5354
To sign enter by example:
5455
```
55-
codesign –force –sign Developer ID Application: 4D Deutschland GmbH (4789QA2D2W)" /Users/thomas/Desktop/gdrive
56+
codesign –force --options runtime --timestamp –sign Developer ID Application: 4D Deutschland GmbH (4789QA2D2W)" /Users/thomas/Desktop/gdrive
5657
```
5758

5859
If Gdrive changes the API, just download the latest release from the github repository.
5960

60-
If you care for easy deployment, you could compile it yourself (as described in the github repository, see "Compile from Source") and use this version for deployment (sign/notarize it on Mac)
61-
6261

6362
Copy class methods:
6463
FileTansfer_GDrive.4dm

Readme_curl.MD

+1-3
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,7 @@ By default the class uses the cURL version delivered with the operating system.
3333

3434
By installing "your" own version SFTP will be supported additionally, and this allows to support Windows Server 2016 or 2012 R2.
3535

36-
The class includes a precompiled version for Windows (compiled by curl.se from February 2022) in the Resources folder.
37-
38-
It can be updated or replaced by a precompiled versions for Windows, such as from:
36+
Precompiled versions for Windows can be loaded here:
3937
[curl.se](https://curl.se/download.html)
4038

4139
To use SFTP on Mac you need to install [Homebrew](https://brew.sh) and run:

Readme_dropbox.MD

+8-7
Original file line numberDiff line numberDiff line change
@@ -37,19 +37,20 @@ Check the download part of the method to see how to use progress bar with Cancel
3737
Dropbox provides a command line tool supporting all standard file transfer operations:
3838
[dbxcli](https://github.com/dropbox/dbxcli)
3939

40-
The tool is written in the language 'go', which allows a compilation of an executable without any dependencies. This means you an easily deploy it as part of your application (in Resource folder or similar), it uses the Apache License
40+
The tool is written in the language 'go', which allows a compilation of an executable without any dependencies. This means you an easily deploy it as part of your application (in Resource folder or similar), it uses the Apache License,
4141

42-
You can compile it yourself (see instruction in link above), download a precompiled version from Dropbox's github account or use the enclosed one.
42+
If Dropbox changes the API, just download their latest release and replace the binary.
43+
44+
You can compile it yourself (see instruction in link above) or download a precompiled version from Dropbox's github account.
4345

44-
The enclosed one was download February 2022 (Version 3.00). To ease usage/testing on Mac the downloaded version was signed by me (using an Apple certificate from 4D Germany).
46+
For Windows the downloaded version could be placed in Resources folder and so easily deployed.
4547

46-
To use and deploy we advise to download yourself from github/releases, sign it, and then sign/notarize the embedding 4D application.
47-
To sign enter by example:
48+
For Mac, it needs to be signed by you. To sign enter by example:
4849
```
49-
codesign –force –sign "Developer ID Application: 4D Deutschland GmbH" /Users/thomas/Desktop/dbxcli
50+
codesign –force --options runtime --timestamp –sign "Developer ID Application: 4D Deutschland GmbH" /Users/thomas/Desktop/dbxcli
5051
```
52+
But the latest version as available in February 2022 was linked with a too old MacOS Version (<10.9) which does not allow to notarise the final application, forbidding to set the file inside the 4D application. This forces you to download on customer side and install it locally, to avoid the need to notarise. I tried to compile following the instructions myself, while the resulted executeable could upload/download, it could get get directory information for the root folder, so I'm not sure if recompilation is a solution for Mac.
5153

52-
If Dropbox changes the API, just download their latest release and replace the binary.
5354

5455
Copy class methods:
5556
FileTansfer_Dropbox.4dm

0 commit comments

Comments
 (0)