Skip to content

Commit

Permalink
fix: auto updater and installer permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
Turtlepaw committed Dec 31, 2024
1 parent cd69e21 commit 6fd0bce
Show file tree
Hide file tree
Showing 4 changed files with 149 additions and 195 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ curl -s https://raw.githubusercontent.com/Turtlepaw/clockwork/refs/heads/main/in

### Add a repository

Clockwork will run

```shell
clockwork add <repo-url>
```
Expand Down Expand Up @@ -157,6 +159,10 @@ The script automatically checks for updates of itself when running.

For the auto-updater to work, all executables built **must retain the original name given** and be published as assets in a GitHub release. You must also set the `repoOwner` (and `repoName` if needed) for the auto updater to fetch assets from.

##### Testing the auto updater

For testing, temporarily set the `version` in `package.json` to something lower and recompile the executables, the version set in `package.json` will automatically be injected into the compiled javascript.

## Acknowledgements

- [Google's Watch Face Format Sample repository](https://github.com/android/wear-os-samples/tree/main/WatchFaceFormat)
Expand Down
3 changes: 3 additions & 0 deletions install/install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ if (-Not (Test-Path -Path $installDir)) {
New-Item -ItemType Directory -Path $installDir
}

# Set permissions for the installation directory
icacls $installDir /grant "Everyone:(OI)(CI)F" /T

# Download the latest release
$latestReleaseUrl = "https://github.com/Turtlepaw/clockwork/releases/latest/download/clockwork-win.exe"
$destinationPath = Join-Path -Path $installDir -ChildPath "clockwork.exe"
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wff-build-script",
"version": "1.1.2",
"version": "1.1.3",
"main": "scripts/build.js",
"repository": "https://github.com/gondwanasoft/wff-build-script.git",
"author": "https://github.com/gondwanasoft",
Expand Down Expand Up @@ -49,4 +49,4 @@
"node_modules/ora/**"
]
}
}
}
Loading

0 comments on commit 6fd0bce

Please sign in to comment.