mirror of
https://github.com/moeru-ai/airi-factorio.git
synced 2025-09-04 17:02:04 +00:00
fix(devcontainer): auto save failed
This commit is contained in:
@@ -54,11 +54,11 @@ It's hard to describe the project structure in a few words, but it currently loo
|
||||
5. Create a game save file, the save file path should be the same as the one in the `.env` file:
|
||||
|
||||
```bash
|
||||
/path/to/factorio/bin/x64/factorio --create /path/to/factorio/saves/save.zip
|
||||
/path/to/factorio/bin/x64/factorio --create /path/to/factorio/the-save-file.zip
|
||||
# If you are using DevContainer, you can use the following command:
|
||||
/opt/factorio/bin/x64/factorio --create /path/to/factorio/saves/save.zip
|
||||
/opt/factorio/bin/x64/factorio --create /path/to/factorio/the-save-file.zip
|
||||
# If your machine is not x64, you can use the following command:
|
||||
box64 /opt/factorio/bin/x64/factorio --create /path/to/factorio/saves/save.zip
|
||||
box64 /opt/factorio/bin/x64/factorio --create /path/to/factorio/the-save-file.zip
|
||||
```
|
||||
|
||||
6. Run the development script:
|
||||
|
@@ -33,10 +33,10 @@ WS_SERVER_HOST='localhost'
|
||||
console.log('Creating save file...\n\n===== Game output starts =====\n')
|
||||
|
||||
if (arch() === 'arm64') {
|
||||
await execa('box64', ['/opt/factorio/bin/x64/factorio', '--create', '/opt/factorio/save.zip'], { stdio: 'inherit' })
|
||||
await execa('box64', ['/opt/factorio/bin/x64/factorio', '--create', '/opt/factorio/the-save-file.zip'], { stdio: 'inherit' })
|
||||
}
|
||||
else {
|
||||
await execa('/opt/factorio/bin/x64/factorio', ['--create', '/opt/factorio/save.zip'], { stdio: 'inherit' })
|
||||
await execa('/opt/factorio/bin/x64/factorio', ['--create', '/opt/factorio/the-save-file.zip'], { stdio: 'inherit' })
|
||||
}
|
||||
|
||||
console.log('\n\n===== Game output ends =====\n\nCreated save file')
|
||||
|
Reference in New Issue
Block a user