Skip to content

Commit

Permalink
Remove prebuild gdrive/dropbox/curl versions because of notarisation …
Browse files Browse the repository at this point in the history
…issues
  • Loading branch information
ThomasMaul committed Mar 8, 2022
1 parent a12683b commit 4bcd2b2
Show file tree
Hide file tree
Showing 22 changed files with 19 additions and 6,585 deletions.
6 changes: 2 additions & 4 deletions Project/Sources/Classes/FileTransfer_Dropbox.4dm
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@ Class constructor()
This:C1470.onData:=New object:C1471("text"; "")
If (Is macOS:C1572)
This:C1470._return:=Char:C90(10)
$path:=Get 4D folder:C485(Current resources folder:K5:16)+"Dropbox"+Folder separator:K24:12+"dbxcli"
This:C1470._Path:=Convert path system to POSIX:C1106($path)
This:C1470._Path:="dbxcli"
Else
This:C1470._return:=Char:C90(10) //Char(13)+Char(10)
$path:=Get 4D folder:C485(Current resources folder:K5:16)+"Dropbox"+Folder separator:K24:12+"dbxcli.exe"
This:C1470._Path:=Convert path system to POSIX:C1106($path)
This:C1470._Path:="dbxcli.exe"
End if
This:C1470._timeout:=0

Expand Down
2 changes: 2 additions & 0 deletions Project/Sources/Methods/test_GDrive.4dm
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
var $ftp : cs:C1710.FileTransfer_GDrive
$ftp:=cs:C1710.FileTransfer_GDrive.new()

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

If (False:C215)
$result:=$ftp.version()
Expand Down
3 changes: 2 additions & 1 deletion Project/Sources/Methods/test_dropbox.4dm
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
//%attributes = {}
var $ftp : cs:C1710.FileTransfer_Dropbox
$ftp:=cs:C1710.FileTransfer_Dropbox.new()
//$ftp.setPath(" /Users/thomas/Desktop/dbxcli")

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

If (False:C215)
$source:="/"
Expand Down
9 changes: 4 additions & 5 deletions Readme_GDrive.MD
Original file line number Diff line number Diff line change
Expand Up @@ -47,18 +47,17 @@ The tool is written in the language 'go', which allows a compilation of an execu

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

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).
To use and deploy we advise to download yourself from github/releases.

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

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

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)


Copy class methods:
FileTansfer_GDrive.4dm
Expand Down
4 changes: 1 addition & 3 deletions Readme_curl.MD
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@ By default the class uses the cURL version delivered with the operating system.

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

The class includes a precompiled version for Windows (compiled by curl.se from February 2022) in the Resources folder.

It can be updated or replaced by a precompiled versions for Windows, such as from:
Precompiled versions for Windows can be loaded here:
[curl.se](https://curl.se/download.html)

To use SFTP on Mac you need to install [Homebrew](https://brew.sh) and run:
Expand Down
15 changes: 8 additions & 7 deletions Readme_dropbox.MD
Original file line number Diff line number Diff line change
Expand Up @@ -37,19 +37,20 @@ Check the download part of the method to see how to use progress bar with Cancel
Dropbox provides a command line tool supporting all standard file transfer operations:
[dbxcli](https://github.com/dropbox/dbxcli)

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
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,

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

You can compile it yourself (see instruction in link above) or download a precompiled version from Dropbox's github account.

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).
For Windows the downloaded version could be placed in Resources folder and so easily deployed.

To use and deploy we advise to download yourself from github/releases, sign it, and then sign/notarize the embedding 4D application.
To sign enter by example:
For Mac, it needs to be signed by you. To sign enter by example:
```
codesign –force –sign "Developer ID Application: 4D Deutschland GmbH" /Users/thomas/Desktop/dbxcli
codesign –force --options runtime --timestamp –sign "Developer ID Application: 4D Deutschland GmbH" /Users/thomas/Desktop/dbxcli
```
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.

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

Copy class methods:
FileTansfer_Dropbox.4dm
Expand Down
Loading

0 comments on commit 4bcd2b2

Please sign in to comment.