feat: write script into /dev/shm (#444)

Fixes #443
This commit is contained in:
lollipopkit🏳️‍⚧️
2024-07-03 19:14:27 +08:00
committed by GitHub
parent 282cb06091
commit 4430045550
18 changed files with 41 additions and 92 deletions

View File

@@ -347,9 +347,13 @@ class ServerProvider extends ChangeNotifier {
if (homePath == null || homePath.isEmpty) {
throw Exception('Got empty home path');
}
final remotePath = ShellFunc.getShellPath(homePath);
final reqId = Pros.sftp.add(
SftpReq(spi, remotePath, localPath, SftpReqType.upload),
SftpReq(
spi,
ShellFunc.scriptPath,
localPath,
SftpReqType.upload,
),
completer: completer,
);
await completer.future;