@lay111/dsh-plugin-google 1.0.12 → 1.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/auth.js +5 -1
package/package.json
CHANGED
package/src/auth.js
CHANGED
|
@@ -188,8 +188,12 @@ export async function startGoogleOAuthLogin() {
|
|
|
188
188
|
console.log(`🔑 Google Antigravity Pro OAuth Login`);
|
|
189
189
|
console.log(`Opening browser: ${authUrl}\n======================================================\n`);
|
|
190
190
|
|
|
191
|
+
const isMac = process.platform === 'darwin';
|
|
192
|
+
const isWin = process.platform === 'win32';
|
|
193
|
+
const opener = isMac ? 'open' : isWin ? 'start' : 'xdg-open';
|
|
194
|
+
|
|
191
195
|
try {
|
|
192
|
-
spawn(
|
|
196
|
+
spawn(opener, [authUrl], { detached: true, stdio: 'ignore' }).unref();
|
|
193
197
|
} catch {}
|
|
194
198
|
|
|
195
199
|
return new Promise((resolve, reject) => {
|