Skip to content

Commit

Permalink
fix: frpc path
Browse files Browse the repository at this point in the history
  • Loading branch information
chenfan0 committed Oct 30, 2024
1 parent 60e13e3 commit 7af1125
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/main/frpc/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import debug from 'debug'
const log = debug('fideo-frpc')

const isMac = os.platform() === 'darwin'
const isArm = ['arm64', 'arm'].includes(os.arch())

export let frpcObj: {
frpcProcess: ChildProcess
Expand Down Expand Up @@ -195,13 +194,7 @@ export async function startFrpcProcess(

writeLog('frpc', 'frpcConfigPath: ' + frpcConfigPath)

const frpcPath = isMac
? isArm
? join(userPath, 'frp-mac-arm64/frpc')
: join(userPath, 'frp-mac-amd64/frpc')
: isArm
? join(userPath, 'frp-win-arm64/frpc.exe')
: join(userPath, 'frp-win-amd64/frpc.exe')
const frpcPath = isMac ? join(process.resourcesPath, 'frpc') : join(process.resourcesPath, 'frpc.exe')

const frpcProcess = spawn(frpcPath, ['-c', frpcConfigPath])

Expand Down

0 comments on commit 7af1125

Please sign in to comment.