Skip to content

Edge-Drop is a clipboard shelf on the edge of your screen. Hover to open it. Drag files and images into any app, click to copy text and links. Free and open-source for Windows.

seprate build for github and MS

Deepender25d7dc8f2d445e
diff --git a/drag_debug.txt b/drag_debug.txt
index ccb8955..f49d4a2 100644
--- a/drag_debug.txt
+++ b/drag_debug.txt
@@ -3723,3 +3723,15 @@
[2026-07-17T17:02:55.647Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
[2026-07-17T17:02:55.648Z] createFileStackDragIcon calling Resvg for count=1
[2026-07-17T17:02:55.787Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-17T18:54:22.120Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-17T18:54:23.648Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-17T18:54:23.649Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-17T18:54:23.890Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-17T18:54:23.892Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-17T18:54:24.128Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-17T18:58:27.113Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-17T18:58:27.467Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-17T18:58:27.468Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-17T18:58:27.616Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-17T18:58:27.617Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-17T18:58:27.757Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
diff --git a/electron/main/ipc.ts b/electron/main/ipc.ts
index bfd405a..8f2c627 100644
--- a/electron/main/ipc.ts
+++ b/electron/main/ipc.ts
@@ -6,7 +6,8 @@
* is a compile-time error rather than a runtime one.
*/
import { app, ipcMain, clipboard, nativeImage, screen } from 'electron'
-import { existsSync } from 'node:fs'
+import { existsSync, readFileSync } from 'node:fs'
+import { join } from 'node:path'
import { execFile } from 'node:child_process'
import { psHost } from './powershell'
import { type InvokeMap, type InvokeChannel, type SendMap, type SendChannel } from '../../shared/ipc'
@@ -147,6 +148,27 @@ function handle<C extends InvokeChannel>(
ipcMain.handle(channel, (_e, ...args) => fn(...(args as InvokeMap[C]['args'])))
}
+/** Detects whether the app is packaged and running as a Microsoft Store (MSIX) build. */
+function isStoreBuild(): boolean {
+ if (process.windowsStore || process.env.APP_BUILD_TARGET === 'store') {
+ return true
+ }
+ try {
+ if (app.isPackaged) {
+ const pkgPath = join(app.getAppPath(), 'package.json')
+ if (existsSync(pkgPath)) {
+ const pkg = JSON.parse(readFileSync(pkgPath, 'utf8'))
+ if (pkg.buildTarget === 'store') {
+ return true
+ }
+ }
+ }
+ } catch {
+ /* ignore */
+ }
+ return false
+}
+
export function registerIpc(): void {
handle('state:load', () => {
return {
@@ -157,6 +179,9 @@ export function registerIpc(): void {
})
handle('app:check-update', async () => {
+ if (isStoreBuild()) {
+ return null
+ }
try {
const response = await fetch('https://api.github.com/repos/Deepender25/Edge-Drop/releases/latest', {
headers: {
diff --git a/electron/main/onboardingWindow.ts b/electron/main/onboardingWindow.ts
index 8294e5a..bff8eb8 100644
--- a/electron/main/onboardingWindow.ts
+++ b/electron/main/onboardingWindow.ts
@@ -21,6 +21,7 @@ export function createOnboardingWindow(): void {
show: false,
frame: false,
resizable: false,
+ backgroundColor: '#121212',
webPreferences: {
preload: join(__dirname, '../preload/index.cjs'),
nodeIntegration: false,
diff --git a/package.json b/package.json
index 2214bde..a52517e 100644
--- a/package.json
+++ b/package.json
@@ -10,8 +10,11 @@
"scripts": {
"dev": "electron-vite dev",
"build": "electron-vite build",
- "build:win": "npm run build && electron-builder --win",
- "package": "npm run build && electron-builder --win",
+ "build:github": "npm run build && electron-builder --win nsis -c.extraMetadata.buildTarget=github",
+ "build:store": "npm run build && electron-builder --win appx -c.extraMetadata.buildTarget=store",
+ "build:msix": "npm run build && electron-builder --win appx -c.extraMetadata.buildTarget=store",
+ "build:win": "npm run build:github",
+ "package": "npm run build:github",
"preview": "electron-vite preview",
"typecheck:node": "tsc --noEmit -p tsconfig.node.json --composite false",
"typecheck:web": "tsc --noEmit -p tsconfig.web.json --composite false",
@@ -36,6 +39,12 @@
"arch": [
"x64"
]
+ },
+ {
+ "target": "appx",
+ "arch": [
+ "x64"
+ ]
}
],
"icon": "resources/icon.ico"
@@ -47,6 +56,12 @@
"shortcutName": "Edge-Drop",
"createDesktopShortcut": true,
"createStartMenuShortcut": true
+ },
+ "appx": {
+ "identityName": "Deepender.EdgeDrop",
+ "publisher": "CN=55FECDC4-7144-4A41-98FC-056C003F76FD",
+ "publisherDisplayName": "Deepender",
+ "applicationId": "EdgeDrop"
}
},
"devDependencies": {
diff --git a/public/copy.webm b/public/copy.webm
new file mode 100644
index 0000000..33022de
Binary files /dev/null and b/public/copy.webm differ
diff --git a/public/drag.webm b/public/drag.webm
new file mode 100644
index 0000000..881e94f
Binary files /dev/null and b/public/drag.webm differ
diff --git a/public/merge.webm b/public/merge.webm
new file mode 100644
index 0000000..3dfe6c3
Binary files /dev/null and b/public/merge.webm differ
diff --git a/public/placeholder_copy.mp4 b/public/placeholder_copy.mp4
deleted file mode 100644
index 52f69ba..0000000
Binary files a/public/placeholder_copy.mp4 and /dev/null differ
diff --git a/public/placeholder_drag.mp4 b/public/placeholder_drag.mp4
deleted file mode 100644
index 20e6e59..0000000
Binary files a/public/placeholder_drag.mp4 and /dev/null differ
diff --git a/public/placeholder_merge.mp4 b/public/placeholder_merge.mp4
deleted file mode 100644
index 23d8575..0000000
Binary files a/public/placeholder_merge.mp4 and /dev/null differ
diff --git a/public/placeholder_stacks.mp4 b/public/placeholder_stacks.mp4
deleted file mode 100644
index 4de9d5f..0000000
Binary files a/public/placeholder_stacks.mp4 and /dev/null differ
diff --git a/public/placeholder_ungroup.mp4 b/public/placeholder_ungroup.mp4
deleted file mode 100644
index 3002812..0000000
Binary files a/public/placeholder_ungroup.mp4 and /dev/null differ
diff --git a/public/placeholder_welcome.mp4 b/public/placeholder_welcome.mp4
deleted file mode 100644
index f39fa5b..0000000
Binary files a/public/placeholder_welcome.mp4 and /dev/null differ
diff --git a/public/stack.webm b/public/stack.webm
new file mode 100644
index 0000000..533863b
Binary files /dev/null and b/public/stack.webm differ
diff --git a/public/ungroup.webm b/public/ungroup.webm
new file mode 100644
index 0000000..40d7a94
Binary files /dev/null and b/public/ungroup.webm differ
diff --git a/public/welcome.webm b/public/welcome.webm
new file mode 100644
index 0000000..fee72db
Binary files /dev/null and b/public/welcome.webm differ
diff --git a/src/Onboarding.tsx b/src/Onboarding.tsx
index f4d12a8..7e20b1d 100644
--- a/src/Onboarding.tsx
+++ b/src/Onboarding.tsx
@@ -8,42 +8,42 @@ const slides = [
id: 'slide-1',
title: 'Welcome to Edge-Drop',
description: 'Edge-Drop lives hidden on the left edge of your screen. Simply move your mouse to the left edge to open the panel, and move away to hide it.',
- videoSrc: 'placeholder_welcome.mp4',
+ videoSrc: 'welcome.webm',
placeholderColor: 'linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%)'
},
{
id: 'slide-2',
title: 'Collect Anything',
description: 'Whenever you press Ctrl+C to copy text, images, or files, Edge-Drop automatically catches and saves them in the background.',
- videoSrc: 'placeholder_copy.mp4',
+ videoSrc: 'copy.webm',
placeholderColor: 'linear-gradient(135deg, #4FACFE 0%, #00F2FE 100%)'
},
{
id: 'slide-3',
title: 'Drag & Drop Anywhere',
description: 'Need to use an item? Just open the panel and drag the card directly into any application, folder, or document.',
- videoSrc: 'placeholder_drag.mp4',
+ videoSrc: 'drag.webm',
placeholderColor: 'linear-gradient(135deg, #43E97B 0%, #38F9D7 100%)'
},
{
id: 'slide-4',
title: 'Explore File Stacks',
description: 'Copying multiple files groups them into a stack. You can drag the entire stack, or click it to view and extract individual files.',
- videoSrc: 'placeholder_stacks.mp4',
+ videoSrc: 'stack.webm',
placeholderColor: 'linear-gradient(135deg, #FA709A 0%, #FEE140 100%)'
},
{
id: 'slide-5-ungroup',
title: 'Ungroup & Split Stacks',
description: 'Want to separate items in a stack? Click to expand the stack, then drag any subitem to the left edge of the screen. A glowing coral bar will appear—drop the item on it to extract it back into a standalone card.',
- videoSrc: 'placeholder_ungroup.mp4',
+ videoSrc: 'ungroup.webm',
placeholderColor: 'linear-gradient(135deg, #FAD961 0%, #F76B1C 100%)'
},
{
id: 'slide-5',
title: 'Combine & Merge Items',
description: 'Combine separate file or image cards by dragging them directly onto each other. This organizes your shelf by bundling related assets into a stack.',
- videoSrc: 'placeholder_merge.mp4',
+ videoSrc: 'merge.webm',
placeholderColor: 'linear-gradient(135deg, #667EEA 0%, #764BA2 100%)'
},
{
diff --git a/src/main.tsx b/src/main.tsx
index b24b8f4..bfebcbe 100644
--- a/src/main.tsx
+++ b/src/main.tsx
@@ -15,7 +15,7 @@ if (!container) throw new Error('#root element not found')
const root = createRoot(container)
-if (window.location.hash === '#onboarding') {
+if (window.location.hash === '#onboarding' || window.location.hash === '#/onboarding' || window.location.hash.includes('onboarding')) {
// The tutorial is only opened once. Keep its component (and its video UI)
// out of the always-running panel renderer.
void import('./Onboarding').then(({ Onboarding }) => {