Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Properly close adb and rclone on exit #35

Conversation

MikeRatcliffe
Copy link

Fixes #34

Cleanly closes adb and rclone connections when the application exits, ensuring resources are freed and preventing potential issues. This addresses a previous oversight where these connections weren't properly closed, potentially leading to resource leaks or unexpected behavior.

Even though we free up the adb connection we don't close the server because other programs may be using the connection.

@MikeRatcliffe MikeRatcliffe force-pushed the ensure-sidenoder-closes-adb-and-rclone branch from 8bb462f to 52f988a Compare September 17, 2024 09:49
@MikeRatcliffe MikeRatcliffe force-pushed the ensure-sidenoder-closes-adb-and-rclone branch from 52f988a to d005071 Compare September 17, 2024 12:21
@MikeRatcliffe MikeRatcliffe force-pushed the ensure-sidenoder-closes-adb-and-rclone branch from d005071 to 419e05b Compare September 17, 2024 12:40
fix: Battery not displayed properly

build: Add eslint
@MikeRatcliffe MikeRatcliffe force-pushed the ensure-sidenoder-closes-adb-and-rclone branch from 419e05b to 4900500 Compare September 17, 2024 13:05
@MikeRatcliffe MikeRatcliffe force-pushed the ensure-sidenoder-closes-adb-and-rclone branch 2 times, most recently from 2032a7a to 4cf6643 Compare September 17, 2024 13:46
@MikeRatcliffe MikeRatcliffe force-pushed the ensure-sidenoder-closes-adb-and-rclone branch from 4cf6643 to 9328520 Compare September 17, 2024 13:55
Adds GitHub Actions workflow for automated releases, including:

- Build for multiple OSs:
   - macOs (Universal `dmg` for both Intel & M1)
   - Windows `exe`
   - Linux:
      - `AppImage`
      - `deb`
      - `rpm`
   - Changelog is automatically generated when a version number tag is added to a commit e.g. `v0.9.2`.

This streamlines the release process and ensures consistent releases across all platforms.

Usage:

1. Update version number in `package.json`.
2. ```
   git commit -m "Release v0.9.2"
   git tag v0.9.2 # The version number must be in the format `v1.2.3`.
   git push --force --tags
   ```
3. That's it... a release will be automatically generated along with conventional commit messages and installation packages for each platform.

To ensure we pick up all changes we should probably add the conventional commits pre-commit hook to ensure commit messages contain the required `fix`, `feat` etc.
@MikeRatcliffe MikeRatcliffe force-pushed the ensure-sidenoder-closes-adb-and-rclone branch from 9328520 to 0289896 Compare September 17, 2024 13:57
fix: Properly close `adb` and `rclone` on exit

Fixes VRPirates#34

Cleanly closes `adb` and `rclone` connections when the application exits, ensuring resources are freed and preventing potential issues. This addresses a previous oversight where these connections weren't properly closed, potentially leading to resource leaks or unexpected behavior.

Even though we free up the adb connection we don't close the server because other programs may be using the connection.
@MikeRatcliffe MikeRatcliffe force-pushed the ensure-sidenoder-closes-adb-and-rclone branch from 0289896 to 6207d21 Compare September 17, 2024 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ensure that Sidenoder closes adb and rclone
1 participant