mirror of
https://github.com/viarotel-org/escrcpy.git
synced 2024-11-14 18:57:40 +01:00
Merge branch 'main' into dev
This commit is contained in:
commit
dfb1c38b84
13
.github/workflows/release-assets.yml
vendored
13
.github/workflows/release-assets.yml
vendored
@ -27,24 +27,29 @@ jobs:
|
||||
with:
|
||||
node-version: 20
|
||||
|
||||
- name: Enable corepack and pnpm
|
||||
run: |
|
||||
corepack enable
|
||||
corepack prepare pnpm@latest --activate
|
||||
|
||||
- name: Install Dependencies
|
||||
run: npm install
|
||||
run: pnpm install
|
||||
|
||||
- name: build-linux
|
||||
if: matrix.os == 'ubuntu-latest'
|
||||
run: npm run build:linux
|
||||
run: pnpm build:linux
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GH_TOKEN }}
|
||||
|
||||
- name: build-mac
|
||||
if: matrix.os == 'macos-latest'
|
||||
run: npm run build:mac
|
||||
run: pnpm build:mac
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GH_TOKEN }}
|
||||
|
||||
- name: build-win
|
||||
if: matrix.os == 'windows-latest'
|
||||
run: npm run build:win
|
||||
run: pnpm build:win
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GH_TOKEN }}
|
||||
|
||||
|
9
.npmrc
9
.npmrc
@ -1,7 +1,4 @@
|
||||
registry=https://registry.npmmirror.com/
|
||||
shamefully-hoist=true
|
||||
virtual-store-dir-max-length=70
|
||||
# 国内用户如果遇到无法安装依赖的情况,请将 .npmrc.CN 中的配置覆盖到本文件中
|
||||
|
||||
ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/
|
||||
ELECTRON_CUSTOM_DIR="{{ version }}"
|
||||
ELECTRON_BUILDER_BINARIES_MIRROR=https://npmmirror.com/mirrors/electron-builder-binaries/
|
||||
shamefully-hoist=true
|
||||
virtual-store-dir-max-length=70
|
10
.npmrc.CN
Normal file
10
.npmrc.CN
Normal file
@ -0,0 +1,10 @@
|
||||
# 国内用户如果遇到无法安装依赖的情况,请将该文件中的配置覆盖到 .npmrc 中
|
||||
|
||||
shamefully-hoist=true
|
||||
virtual-store-dir-max-length=70
|
||||
|
||||
|
||||
registry=https://registry.npmmirror.com/
|
||||
ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/
|
||||
ELECTRON_CUSTOM_DIR="{{ version }}"
|
||||
ELECTRON_BUILDER_BINARIES_MIRROR=https://npmmirror.com/mirrors/electron-builder-binaries/
|
32
CHANGELOG.md
32
CHANGELOG.md
@ -1,5 +1,37 @@
|
||||
# Changelog
|
||||
|
||||
## [1.25.2](https://github.com/viarotel-org/escrcpy/compare/v1.25.1...v1.25.2) (2024-10-29)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* 🐛 Resolve default recording error ([358064e](https://github.com/viarotel-org/escrcpy/commit/358064ecd487dd69b635531eb0e2611f14ae5c7c))
|
||||
|
||||
## [1.25.1](https://github.com/viarotel-org/escrcpy/compare/v1.25.0...v1.25.1) (2024-10-28)
|
||||
|
||||
|
||||
### Miscellaneous Chores
|
||||
|
||||
* release 1.25.1 ([f60245b](https://github.com/viarotel-org/escrcpy/commit/f60245b11d9f38d5a61d9e3c59932de95ecef4b0))
|
||||
|
||||
## [1.25.0](https://github.com/viarotel-org/escrcpy/compare/v1.24.3...v1.25.0) (2024-10-28)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* ✨ Support to close the device screen when controlling ([a84c775](https://github.com/viarotel-org/escrcpy/commit/a84c775fa1ca507f551c4b0a1499d40d9bc2aedd))
|
||||
* 📸 Enhanced recording ([7f10161](https://github.com/viarotel-org/escrcpy/commit/7f10161ad7be72ddcdfcb8bda2aa075e6d748932))
|
||||
|
||||
|
||||
### Performance Improvements
|
||||
|
||||
* ♻️ Optimize camera recording ([4be2cf4](https://github.com/viarotel-org/escrcpy/commit/4be2cf4f144ffe5694a4abbb35f14dc5bac0bace))
|
||||
* ♻️ Script and directory structure optimization ([68378ef](https://github.com/viarotel-org/escrcpy/commit/68378efb51c89095e6b2802bf9936608a156d17a))
|
||||
* ⚗️ Experimental support for turning off screen controls ([9555f58](https://github.com/viarotel-org/escrcpy/commit/9555f58df5f1c4bc4a263ddf586c605785a094ef))
|
||||
* ⚡️ Optimize scrcpy parameter conversion performance ([18dcd24](https://github.com/viarotel-org/escrcpy/commit/18dcd24e656801fbb811ccc46496e4037d28a137))
|
||||
* 💄 Improved Russian display ([ca79e1b](https://github.com/viarotel-org/escrcpy/commit/ca79e1b57d507ba0fc4b2c3dd2411682b3b87105))
|
||||
* 📸 Recording camera support ([10d0370](https://github.com/viarotel-org/escrcpy/commit/10d0370b663bc08028633e9dad910a637ea373b6))
|
||||
|
||||
## [1.24.3](https://github.com/viarotel-org/escrcpy/compare/v1.24.2...v1.24.3) (2024-10-21)
|
||||
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "escrcpy",
|
||||
"type": "module",
|
||||
"version": "1.24.3",
|
||||
"version": "1.25.2",
|
||||
"private": true,
|
||||
"packageManager": "pnpm@9.4.0+sha1.9217c800d4ab947a7aee520242a7b70d64fc7638",
|
||||
"description": "Scrcpy Powered by Electron",
|
||||
|
@ -8,8 +8,8 @@ import { openFloatControl } from '$/utils/device/index.js'
|
||||
|
||||
const recordModel = {
|
||||
default: {
|
||||
excludes: '',
|
||||
command: '',
|
||||
excludes: [],
|
||||
commands: [],
|
||||
extname: config => config['--record-format'] || 'mp4',
|
||||
},
|
||||
audio: {
|
||||
@ -64,17 +64,21 @@ export default {
|
||||
isRecord: ['default', 'audio'].includes(this.recordType),
|
||||
isCamera: ['camera'].includes(this.recordType),
|
||||
excludes: [
|
||||
'--otg',
|
||||
'--mouse=aoa',
|
||||
'--keyboard=aoa',
|
||||
'--show-touches',
|
||||
...this.activeModel.excludes,
|
||||
...new Set([
|
||||
'--otg',
|
||||
'--mouse=aoa',
|
||||
'--keyboard=aoa',
|
||||
'--show-touches',
|
||||
...this.activeModel.excludes,
|
||||
]),
|
||||
],
|
||||
})
|
||||
|
||||
args += ` ${this.activeModel.commands.join(' ')}`
|
||||
const commands = this.activeModel.commands || []
|
||||
|
||||
console.log('args', args)
|
||||
if (commands.length) {
|
||||
args += ` ${commands.join(' ')}`
|
||||
}
|
||||
|
||||
try {
|
||||
const recording = this.$scrcpy.record(row.id, {
|
||||
|
Loading…
Reference in New Issue
Block a user