perf: ♻️ 补充依赖及目录结构调整
@ -26,7 +26,8 @@
|
||||
"artifactName": "${productName}-${version}-win-${arch}.${ext}",
|
||||
"extraResources": {
|
||||
"from": "electron/resources/extra",
|
||||
"to": "extra"
|
||||
"to": "extra",
|
||||
"filter": ["common", "win"]
|
||||
}
|
||||
},
|
||||
"nsis": {
|
||||
@ -58,7 +59,7 @@
|
||||
"extraResources": {
|
||||
"from": "electron/resources/extra",
|
||||
"to": "extra",
|
||||
"filter": ["**/*", "!core", "!adb"]
|
||||
"filter": ["common", "mac"]
|
||||
},
|
||||
"entitlementsInherit": "entitlements.mac.plist",
|
||||
"extendInfo": {
|
||||
@ -89,7 +90,7 @@
|
||||
"extraResources": {
|
||||
"from": "electron/resources/extra",
|
||||
"to": "extra",
|
||||
"filter": ["**/*", "!core", "!adb"]
|
||||
"filter": ["common", "linux"]
|
||||
}
|
||||
},
|
||||
"asar": true,
|
||||
|
14
electron/configs/adb.js
Normal file
@ -0,0 +1,14 @@
|
||||
import { extraResolve } from '@electron/helpers/index.js'
|
||||
|
||||
export const getAdbPath = () => {
|
||||
switch (process.platform) {
|
||||
case 'win32':
|
||||
return extraResolve('win/platform-tools/adb.exe')
|
||||
case 'darwin':
|
||||
return extraResolve('mac/platform-tools/adb')
|
||||
case 'linux':
|
||||
return extraResolve('linux/platform-tools/adb')
|
||||
}
|
||||
}
|
||||
|
||||
export const adbPath = getAdbPath()
|
@ -1,8 +1,11 @@
|
||||
import { resolve } from 'node:path'
|
||||
import which from 'which'
|
||||
|
||||
import { buildResolve, extraResolve } from '@electron/helpers/index.js'
|
||||
|
||||
export { adbPath } from './adb.js'
|
||||
|
||||
export { scrcpyPath } from './scrcpy.js'
|
||||
|
||||
export const desktopPath = process.env.DESKTOP_PATH
|
||||
|
||||
export const devPublishPath = resolve('dev-publish.yml')
|
||||
@ -13,20 +16,7 @@ export const icnsLogoPath = buildResolve('logo.icns')
|
||||
|
||||
export const trayPath
|
||||
= process.platform === 'darwin'
|
||||
? extraResolve('trayTemplate.png')
|
||||
: extraResolve('tray.png')
|
||||
|
||||
export const adbPath
|
||||
= process.platform === 'win32'
|
||||
? extraResolve('adb/adb.exe')
|
||||
: which.sync('adb', { nothrow: true })
|
||||
|
||||
export const scrcpyPath
|
||||
= process.platform === 'win32'
|
||||
? extraResolve('core/scrcpy.exe')
|
||||
: which.sync('scrcpy', { nothrow: true })
|
||||
? extraResolve('mac/tray/iconTemplate.png')
|
||||
: extraResolve('common/tray/icon.png')
|
||||
|
||||
export const logPath = process.env.LOG_PATH
|
||||
|
||||
// console.log('adbPath', adbPath)
|
||||
// console.log('scrcpyPath', scrcpyPath)
|
||||
|
17
electron/configs/scrcpy.js
Normal file
@ -0,0 +1,17 @@
|
||||
import { extraResolve } from '@electron/helpers/index.js'
|
||||
import which from 'which'
|
||||
|
||||
export const getScrcpyPath = () => {
|
||||
switch (process.platform) {
|
||||
case 'win32':
|
||||
return extraResolve('win/scrcpy/scrcpy.exe')
|
||||
// case 'darwin':
|
||||
// return extraResolve('mac/scrcpy/scrcpy')
|
||||
// case 'linux':
|
||||
// return extraResolve('linux/scrcpy/scrcpy')
|
||||
default:
|
||||
return which.sync('scrcpy', { nothrow: true })
|
||||
}
|
||||
}
|
||||
|
||||
export const scrcpyPath = getScrcpyPath()
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
20192
electron/resources/extra/linux/platform-tools/NOTICE.txt
Normal file
BIN
electron/resources/extra/linux/platform-tools/adb
Normal file
BIN
electron/resources/extra/linux/platform-tools/etc1tool
Normal file
BIN
electron/resources/extra/linux/platform-tools/fastboot
Normal file
BIN
electron/resources/extra/linux/platform-tools/hprof-conv
Normal file
BIN
electron/resources/extra/linux/platform-tools/lib64/libc++.so
Normal file
BIN
electron/resources/extra/linux/platform-tools/make_f2fs
Normal file
BIN
electron/resources/extra/linux/platform-tools/make_f2fs_casefold
Normal file
BIN
electron/resources/extra/linux/platform-tools/mke2fs
Normal file
53
electron/resources/extra/linux/platform-tools/mke2fs.conf
Normal file
@ -0,0 +1,53 @@
|
||||
[defaults]
|
||||
base_features = sparse_super,large_file,filetype,dir_index,ext_attr
|
||||
default_mntopts = acl,user_xattr
|
||||
enable_periodic_fsck = 0
|
||||
blocksize = 4096
|
||||
inode_size = 256
|
||||
inode_ratio = 16384
|
||||
reserved_ratio = 1.0
|
||||
|
||||
[fs_types]
|
||||
ext3 = {
|
||||
features = has_journal
|
||||
}
|
||||
ext4 = {
|
||||
features = has_journal,extent,huge_file,dir_nlink,extra_isize,uninit_bg
|
||||
inode_size = 256
|
||||
}
|
||||
ext4dev = {
|
||||
features = has_journal,extent,huge_file,flex_bg,inline_data,64bit,dir_nlink,extra_isize
|
||||
inode_size = 256
|
||||
options = test_fs=1
|
||||
}
|
||||
small = {
|
||||
blocksize = 1024
|
||||
inode_size = 128
|
||||
inode_ratio = 4096
|
||||
}
|
||||
floppy = {
|
||||
blocksize = 1024
|
||||
inode_size = 128
|
||||
inode_ratio = 8192
|
||||
}
|
||||
big = {
|
||||
inode_ratio = 32768
|
||||
}
|
||||
huge = {
|
||||
inode_ratio = 65536
|
||||
}
|
||||
news = {
|
||||
inode_ratio = 4096
|
||||
}
|
||||
largefile = {
|
||||
inode_ratio = 1048576
|
||||
blocksize = -1
|
||||
}
|
||||
largefile4 = {
|
||||
inode_ratio = 4194304
|
||||
blocksize = -1
|
||||
}
|
||||
hurd = {
|
||||
blocksize = 4096
|
||||
inode_size = 128
|
||||
}
|
@ -0,0 +1,2 @@
|
||||
Pkg.UserSrc=false
|
||||
Pkg.Revision=34.0.5
|
BIN
electron/resources/extra/linux/platform-tools/sqlite3
Normal file
20192
electron/resources/extra/mac/platform-tools/NOTICE.txt
Normal file
BIN
electron/resources/extra/mac/platform-tools/adb
Normal file
BIN
electron/resources/extra/mac/platform-tools/etc1tool
Normal file
BIN
electron/resources/extra/mac/platform-tools/fastboot
Normal file
BIN
electron/resources/extra/mac/platform-tools/hprof-conv
Normal file
BIN
electron/resources/extra/mac/platform-tools/lib64/libc++.dylib
Normal file
BIN
electron/resources/extra/mac/platform-tools/make_f2fs
Normal file
BIN
electron/resources/extra/mac/platform-tools/make_f2fs_casefold
Normal file
BIN
electron/resources/extra/mac/platform-tools/mke2fs
Normal file
53
electron/resources/extra/mac/platform-tools/mke2fs.conf
Normal file
@ -0,0 +1,53 @@
|
||||
[defaults]
|
||||
base_features = sparse_super,large_file,filetype,dir_index,ext_attr
|
||||
default_mntopts = acl,user_xattr
|
||||
enable_periodic_fsck = 0
|
||||
blocksize = 4096
|
||||
inode_size = 256
|
||||
inode_ratio = 16384
|
||||
reserved_ratio = 1.0
|
||||
|
||||
[fs_types]
|
||||
ext3 = {
|
||||
features = has_journal
|
||||
}
|
||||
ext4 = {
|
||||
features = has_journal,extent,huge_file,dir_nlink,extra_isize,uninit_bg
|
||||
inode_size = 256
|
||||
}
|
||||
ext4dev = {
|
||||
features = has_journal,extent,huge_file,flex_bg,inline_data,64bit,dir_nlink,extra_isize
|
||||
inode_size = 256
|
||||
options = test_fs=1
|
||||
}
|
||||
small = {
|
||||
blocksize = 1024
|
||||
inode_size = 128
|
||||
inode_ratio = 4096
|
||||
}
|
||||
floppy = {
|
||||
blocksize = 1024
|
||||
inode_size = 128
|
||||
inode_ratio = 8192
|
||||
}
|
||||
big = {
|
||||
inode_ratio = 32768
|
||||
}
|
||||
huge = {
|
||||
inode_ratio = 65536
|
||||
}
|
||||
news = {
|
||||
inode_ratio = 4096
|
||||
}
|
||||
largefile = {
|
||||
inode_ratio = 1048576
|
||||
blocksize = -1
|
||||
}
|
||||
largefile4 = {
|
||||
inode_ratio = 4194304
|
||||
blocksize = -1
|
||||
}
|
||||
hurd = {
|
||||
blocksize = 4096
|
||||
inode_size = 128
|
||||
}
|
@ -0,0 +1,2 @@
|
||||
Pkg.UserSrc=false
|
||||
Pkg.Revision=34.0.5
|
BIN
electron/resources/extra/mac/platform-tools/sqlite3
Normal file
Before Width: | Height: | Size: 242 B After Width: | Height: | Size: 242 B |
Before Width: | Height: | Size: 445 B After Width: | Height: | Size: 445 B |
Before Width: | Height: | Size: 1008 B After Width: | Height: | Size: 1008 B |
Before Width: | Height: | Size: 34 KiB |
20251
electron/resources/extra/win/platform-tools/NOTICE.txt
Normal file
BIN
electron/resources/extra/win/platform-tools/etc1tool.exe
Normal file
BIN
electron/resources/extra/win/platform-tools/fastboot.exe
Normal file
BIN
electron/resources/extra/win/platform-tools/hprof-conv.exe
Normal file
BIN
electron/resources/extra/win/platform-tools/libwinpthread-1.dll
Normal file
BIN
electron/resources/extra/win/platform-tools/make_f2fs.exe
Normal file
53
electron/resources/extra/win/platform-tools/mke2fs.conf
Normal file
@ -0,0 +1,53 @@
|
||||
[defaults]
|
||||
base_features = sparse_super,large_file,filetype,dir_index,ext_attr
|
||||
default_mntopts = acl,user_xattr
|
||||
enable_periodic_fsck = 0
|
||||
blocksize = 4096
|
||||
inode_size = 256
|
||||
inode_ratio = 16384
|
||||
reserved_ratio = 1.0
|
||||
|
||||
[fs_types]
|
||||
ext3 = {
|
||||
features = has_journal
|
||||
}
|
||||
ext4 = {
|
||||
features = has_journal,extent,huge_file,dir_nlink,extra_isize,uninit_bg
|
||||
inode_size = 256
|
||||
}
|
||||
ext4dev = {
|
||||
features = has_journal,extent,huge_file,flex_bg,inline_data,64bit,dir_nlink,extra_isize
|
||||
inode_size = 256
|
||||
options = test_fs=1
|
||||
}
|
||||
small = {
|
||||
blocksize = 1024
|
||||
inode_size = 128
|
||||
inode_ratio = 4096
|
||||
}
|
||||
floppy = {
|
||||
blocksize = 1024
|
||||
inode_size = 128
|
||||
inode_ratio = 8192
|
||||
}
|
||||
big = {
|
||||
inode_ratio = 32768
|
||||
}
|
||||
huge = {
|
||||
inode_ratio = 65536
|
||||
}
|
||||
news = {
|
||||
inode_ratio = 4096
|
||||
}
|
||||
largefile = {
|
||||
inode_ratio = 1048576
|
||||
blocksize = -1
|
||||
}
|
||||
largefile4 = {
|
||||
inode_ratio = 4194304
|
||||
blocksize = -1
|
||||
}
|
||||
hurd = {
|
||||
blocksize = 4096
|
||||
inode_size = 128
|
||||
}
|
BIN
electron/resources/extra/win/platform-tools/mke2fs.exe
Normal file
@ -0,0 +1,2 @@
|
||||
Pkg.UserSrc=false
|
||||
Pkg.Revision=34.0.5
|
BIN
electron/resources/extra/win/platform-tools/sqlite3.exe
Normal file
Before Width: | Height: | Size: 6.4 KiB After Width: | Height: | Size: 6.4 KiB |