GDrop is an AirDrop client tool designed to make it easy to send files from your iphone to your computer. By using Google Drive as a temporary storage, GDrop simplifies file transfers across platforms, allowing you to quickly transfer files shared from your iphone onto your desktop.
git clone https://github.com/ongunm/GDrop.git
cd <cloned_directory_name>
-
Quick Sharing via Google Drive: Google Drive is a convenient, widely available tool that serves as temporary storage for files you want to transfer. GDrop automatically creates a
GDrop
folder in your Drive after setup, where shared files from your phone will be stored temporarily. -
AirDrop-Like Sharing with Few Taps: On your phone, share any file (e.g., photo, document) by selecting Share > Google Drive. For faster access, you can pin Google Drive to the top of your sharing options, making it nearly as quick as using AirDrop.
-
One-Click Desktop Shortcut: Once files are saved to the
GDrop
folder in Drive, all you need to do is click the desktop shortcut on your computer or hit the hotkey Ctrl + Shift + G. GDrop will automatically download the file(s) from theGDrop
folder to your Desktop then delete them from your drive, with no need for repeated authorizations. -
Up-Time: GDrop includes a wait time between after each download to check for making the Laptop be in visible state as in Airdrop, which helps save battery and prevent redundant file transfers. This way, you can simply press the shortcut when you need the shared file.
- Google OAuth2 API Key:
- You need to obtain your
client_secret.json
file, which includes the necessary credentials to access your Google Drive API.
- You need to obtain your
- Go to the Google Cloud Console.
- Create a new project (or use an existing one).
- Enable the Google Drive API for your project.
- Go to APIs & Services > Credentials.
- Click Create Credentials > OAuth client ID.
- Configure the OAuth consent screen if prompted.
- Choose Desktop app as the application type, and download the
client_secret.json
file. - Place
client_secret.json
in the project folder (wheregdrop.js
is located).
- Download and extract the project files to a preferred location.
- Place
client_secret.json
in the project folder. - Run the
windows.exe
file located indist/windows
:- Note: The executable will automatically check if Node.js is installed. If not, it will download and install Node.js for you.
- After installing Node.js, it will run
npm install
to set up the required packages (electron
andgoogleapis
). - A desktop shortcut (
gdrop.lnk
) will be created for you to launchgdrop.js
easily.
- First-time Launch:
- Double-click the GDrop shortcut on your Desktop or use the shortcut key Ctrl + Shift + G.
- Once authorized, a popup will request a refresh token; you only need to do this once.
-
Download and extract the project files to a preferred location.
-
Place
client_secret.json
in the project folder. -
Open a terminal, navigate to the project directory, and run the setup script:
chmod +x setup.sh ./setup.sh
- The script will check if Node.js is installed. If not, it will install it.
- Then, it will run
npm install
to set up the required packages (electron
andgoogleapis
). - A desktop shortcut (
gdrop.sh
) will be created on your Desktop to launchgdrop.js
, and it can be activated by pressing Ctrl + Shift + G. - Ctrl + Shift + G hotkey is only set on gnome, kde, xfce by the setup script. If on another environment you can set a hotkey to run the command:
npx electron gdrop.js
-
First-time Launch:
- Double-click the GDrop shortcut on your Desktop or press the shortcut key Ctrl + Shift + G.
- You will be prompted to authorize access. Sign in with your Google account and allow access.
- Once authorized, a popup will request a refresh token; you only need to provide this token once.
-
On Your Phone:
- Open the file you want to share (e.g., photo, document).
- Tap Share > Google Drive (you can pin Google Drive to the top for easier access).
- Save the file to the
GDrop
folder.
-
On Your Computer:
- Click the GDrop shortcut on your Desktop or press Ctrl + Shift + G.
- GDrop will download the file from the
GDrop
folder to your Desktop.
- Get
client_secret.json
from the Google Cloud Console. - Place it in the project directory.
- Run
windows.exe
(Windows) orsetup.sh
(Linux/macOS) to set up. - Launch the application via the desktop shortcut or Ctrl + Shift + G.
- Authenticate and enter the refresh token only once on the first launch.
GDrop makes it easy to transfer files from your phone to your computer with just a few taps.