### Build Sushitrain Go Framework Source: https://github.com/pixelspark/sushitrain/blob/main/README.md Build the Go framework for Sushitrain. Ensure Go is installed, preferably via Homebrew. ```bash cd SushitrainCore make ``` -------------------------------- ### Update Syncthing Core Dependency Source: https://github.com/pixelspark/sushitrain/blob/main/README.md Update the Syncthing core dependency by modifying the version in go.mod, running go get and go mod tidy, and updating the version in sushitrain.go. To use the main branch, run `go get -u github.com/syncthing/syncthing@main`. ```bash go get -u ./... go mod tidy ``` ```bash go get -u github.com/syncthing/syncthing@main ``` -------------------------------- ### Format Swift Code with swift-format Source: https://github.com/pixelspark/sushitrain/blob/main/README.md Install and use swift-format to lint and format the Swift codebase. ```bash brew install swift-format swift format lint -r . swift format -r -i . ``` -------------------------------- ### Replace Syncthing with Local Version in go.mod Source: https://github.com/pixelspark/sushitrain/blob/main/README.md Use this replace directive in your go.mod file to point to a local development version of Syncthing. Ensure you run 'go mod tidy' afterwards. ```go replace github.com/syncthing/syncthing => /local/path/to/syncthing ``` -------------------------------- ### Translate Strings using ChatGPT Source: https://github.com/pixelspark/sushitrain/blob/main/README.md Translate localizable strings using the provided Node.js script and an OpenAI API key. After running, save the Localizable.xcstrings file in Xcode to maintain formatting. ```bash OPENAI_KEY=sk-xxxx node ./localize.mjs ``` -------------------------------- ### Selective Sync Directory Ignore Pattern Source: https://github.com/pixelspark/sushitrain/blob/main/README.md This pattern is used to select an entire directory for synchronization. All current and future files within the specified directory will be synced. ```ignore !/some/folder * ``` -------------------------------- ### Selective Sync Ignore Pattern Source: https://github.com/pixelspark/sushitrain/blob/main/README.md This pattern is used to ignore all files in a folder for synchronization. Individual files or directories can then be explicitly included by adding an exception pattern before the catch-all '*'. ```ignore !/some/file/I/want.txt * ``` -------------------------------- ### On-Demand Download URL Source: https://github.com/pixelspark/sushitrain/blob/main/README.md This URL format is used to request specific file blocks for on-demand streaming or downloading. It utilizes HTTP range requests to fetch only necessary data. ```http /file?folder=X&path=Y&signature=Z ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.