Skip to content

Commit

Permalink
import
Browse files Browse the repository at this point in the history
  • Loading branch information
SOVLOOKUP committed Oct 17, 2023
1 parent a62e9a7 commit 973efa2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rubick-native",
"version": "0.0.12-beta",
"version": "0.0.12",
"type": "module",
"main": "dist/index.cjs",
"module": "dist/index.js",
Expand Down
4 changes: 2 additions & 2 deletions src/folder.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { activeWindow } from "@miniben90/x-win"
import { execa } from "execa"
import { lstat } from "fs/promises"
import { homedir } from "os"
import { join } from "path"

// 获取活动的文件夹路径
export const getFolderOpenPath = async () => {
if (process.platform === 'darwin') {
const res = await execa('osascript', ['-e', `
const { execa } = await import("execa")
const res = execa('osascript', ['-e', `
tell app "Finder"
try
POSIX path of (insertion location as alias)
Expand Down

0 comments on commit 973efa2

Please sign in to comment.