Skip to content

Commit 326c4c6

Browse files
authored
Wayland fixes for auto-update. (#119)
Wayland fixes for auto-update.
1 parent 333cd57 commit 326c4c6

15 files changed

Lines changed: 93 additions & 50 deletions

.idea/dictionaries/default_user.xml

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
1+
## 3.7.3
2+
3+
* Fixed auto-update process to work properly with Wayland.
4+
5+
Note> You may need to manually update to this version by pulling the latest updates into your aw-clock repo and then running `sudo ./build.sh -i` or `sudo ./build.sh --ddev --reboot`.
6+
17
## 3.7.2
28

39
* Added autostart support for Wayland with Labwc.
4-
* Fix problems starting service under any admin user other than `pi`.
10+
* Fixed problems starting service under any admin user other than `pi`.
511

612
## 3.7.1-do
713

build.js

Lines changed: 2 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1151,8 +1151,8 @@ async function doServiceDeployment(): Promise<void> {
11511151
await monitorProcess(spawn('chmod', ['+x', serviceDst], { shell: true }), spin, ErrorMode.ANY_ERROR);
11521152

11531153
const settingsText =
1154-
`# If you edit AWC_PORT below, be sure to update\n# ${userHome}/${autostartDst}/autostart` +
1155-
(existsSync(wayfireIniPath) ? ` and\n# ${wayfireIniPath}` : '') + ' accordingly.\n' +
1154+
`# If you edit AWC_PORT below, be sure to update\n# ${userHome}/${autostartDst}/autostart_extra.sh` +
1155+
'\n# accordingly.\n' +
11561156
Object.keys(settings).sort().map(key => key + '=' + settings[key]).join('\n') + '\n';
11571157

11581158
fs.writeFileSync(settingsPath, settingsText);

build_node_check.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ if (( version > absMaxVersion )) && [ ! -s "$NVM_DIR/nvm.sh" ]; then
100100
install_nvm
101101
fi
102102

103-
if [ "$version" -ne "$maxVersion" ] && [ -s "$NVM_DIR/nvm.sh" ]; then
103+
if (( version < maxVersion )) && [ -s "$NVM_DIR/nvm.sh" ] && [ $(nvm version-remote $maxVersion) != "N/A" ]; then
104104
if [ "$(nvm use "v$maxVersion")" ]; then
105105
nvm use "v$maxVersion"
106106
nvm alias default "$maxVersion"

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "aw-clock",
3-
"version": "3.7.2",
3+
"version": "3.7.3",
44
"license": "MIT",
55
"author": "Kerry Shetline <kerry@shetline.com>",
66
"scripts": {

raspberry_pi_setup/weatherService

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,17 @@ LOGFILE="/var/log/weatherService.log"
2323
MIN_UPTIME="5000"
2424
SPIN_SLEEP_TIME="2000"
2525

26-
# Define AWC_DARK_SKY_API_KEY, AWC_WIRED_TH_GPIO, AWC_NTP_SERVER, etc., in the file below:
26+
# Define AWC_WEATHERBIT_API_KEY, AWC_WIRED_TH_GPIO, AWC_NTP_SERVER, etc., in the file below:
2727
[ -f /etc/default/weatherService ] && . /etc/default/weatherService
2828

2929
PATH=$NODE_BIN_DIR:$PATH
3030
export NODE_PATH=$NODE_PATH
3131
export AWC_ALLOW_ADMIN=$AWC_ALLOW_ADMIN
3232
export AWC_ALLOW_CORS=$AWC_ALLOW_CORS
33+
export AWC_ALT_DEV_SERVER=$AWC_ALT_DEV_SERVER
3334
export AWC_DARK_SKY_API_KEY=$AWC_DARK_SKY_API_KEY
3435
export AWC_DAYTIME_SERVER=$AWC_DAYTIME_SERVER
35-
export AWC_ALT_DEV_SERVER=$AWC_ALT_DEV_SERVER
36+
export AWC_FAKE_UPDATE=$AWC_FAKE_UPDATE
3637
export AWC_FREQUENT_ID=$AWC_FREQUENT_ID
3738
export AWC_GIT_REPO_PATH=$AWC_GIT_REPO_PATH
3839
export AWC_GOOGLE_API_KEY=$AWC_GOOGLE_API_KEY

sass/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sass/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "aw-clock-sass",
3-
"version": "3.7.2",
3+
"version": "3.7.3",
44
"description": "SASS builder for aw-clock",
55
"keywords": [
66
"sass"

0 commit comments

Comments
 (0)