Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: JezerM/nody-greeter
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1.4.0
Choose a base ref
...
head repository: JezerM/nody-greeter
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref

Commits on Feb 2, 2022

  1. Copy the full SHA
    0bfca4e View commit details
  2. Copy the full SHA
    80d3ce7 View commit details
  3. Copy the full SHA
    9f1a4b3 View commit details
  4. Fix electron's handler

    JezerM committed Feb 2, 2022
    Copy the full SHA
    fe07e99 View commit details
  5. Copy the full SHA
    8502f8e View commit details

Commits on Feb 11, 2022

  1. Check package-lock.json in CI

    s0 committed Feb 11, 2022
    Copy the full SHA
    e01cb9e View commit details
  2. Only check package-lock.json for Node v16

    (v12 & v14 use an older package-lock format)
    s0 committed Feb 11, 2022
    Copy the full SHA
    251806f View commit details
  3. Copy the full SHA
    bbc545c View commit details
  4. Update package-lock.json

    s0 committed Feb 11, 2022
    Copy the full SHA
    937832b View commit details
  5. Copy the full SHA
    768c1f6 View commit details
  6. Copy the full SHA
    e8153cd View commit details
  7. Merge pull request #17 from s0/ci-improvements

    CI Improvements
    JezerM authored Feb 11, 2022
    Copy the full SHA
    2b82df5 View commit details

Commits on Feb 12, 2022

  1. Introduce type-definitions for node-gtk

    Beyond this, a few improvements were made, including:
    
    * Explicitly returning `null` instead of an empty object when given
      falsy objects from node-gtk
    * filtering out falsy objects from gobject lists
    * removing unnecessary / unsafe use of "as"
    * Improved types for `reduceArray` to improve type inference and remove
      requirement for using `any` as parameter types for conversion functions
    * Removed use of `any` in `bridge_objects` functions
    * Correct type of `ac_status` which was incorrect
    s0 committed Feb 12, 2022
    Copy the full SHA
    b7993df View commit details

Commits on Feb 17, 2022

  1. More types and improvements

    JezerM committed Feb 17, 2022
    Copy the full SHA
    1c8fe69 View commit details

Commits on Feb 18, 2022

  1. Increased strictness to top.

    After some weeks of testing without `Error.captureStackTrace`, I can
    confirm that this should work.
    JezerM committed Feb 18, 2022
    Copy the full SHA
    2e882d6 View commit details
  2. Remove bind in utils/battery

    JezerM committed Feb 18, 2022
    Copy the full SHA
    dabde72 View commit details
  3. Copy the full SHA
    5abe373 View commit details

Commits on Feb 20, 2022

  1. New publish and build workflow

    JezerM committed Feb 20, 2022
    Copy the full SHA
    a6836d3 View commit details
  2. Updating to 1.4.1

    JezerM committed Feb 20, 2022
    Copy the full SHA
    2401701 View commit details
  3. Fix package-lock.json

    JezerM committed Feb 20, 2022
    Copy the full SHA
    fcad523 View commit details

Commits on Mar 8, 2022

  1. Deprecate batteryData

    JezerM committed Mar 8, 2022
    Copy the full SHA
    e7db76e View commit details

Commits on Mar 9, 2022

  1. Dereference window on close

    JezerM committed Mar 9, 2022
    Copy the full SHA
    2f46ac4 View commit details
  2. Copy the full SHA
    bfc8209 View commit details
  3. Copy the full SHA
    7937a54 View commit details
  4. Copy the full SHA
    81bfa93 View commit details
  5. Copy the full SHA
    eff5828 View commit details

Commits on Mar 10, 2022

  1. Copy the full SHA
    335eada View commit details
  2. Copy the full SHA
    e0189a8 View commit details

Commits on Mar 11, 2022

  1. Copy the full SHA
    57609aa View commit details
  2. Copy the full SHA
    c8611d3 View commit details
  3. Copy the full SHA
    ec37cf4 View commit details
  4. Forgot about secondary.ts...

    JezerM committed Mar 11, 2022
    Copy the full SHA
    9e2bb46 View commit details
  5. Copy the full SHA
    ce93c09 View commit details

Commits on Mar 13, 2022

  1. Copy the full SHA
    977fa7c View commit details
  2. Fix localStorage bug

    JezerM committed Mar 13, 2022
    Copy the full SHA
    5903a53 View commit details
  3. Add more npm scripts!

    JezerM committed Mar 13, 2022
    Copy the full SHA
    5e63526 View commit details
  4. Add mock.ts to dracula theme

    JezerM committed Mar 13, 2022
    Copy the full SHA
    91ab52f View commit details
  5. Add mock.ts to gruvbox theme

    JezerM committed Mar 13, 2022
    Copy the full SHA
    8756e1f View commit details
  6. Copy the full SHA
    ad4e51c View commit details

Commits on Mar 14, 2022

  1. Merge pull request #18 from s0/type-improvements

    Introduce type-definitions for `node-gtk`
    JezerM authored Mar 14, 2022
    Copy the full SHA
    f7b5463 View commit details

Commits on Mar 25, 2022

  1. Copy the full SHA
    24d1644 View commit details
  2. Fix theme reload issue

    JezerM committed Mar 25, 2022
    Copy the full SHA
    acd3cca View commit details

Commits on Apr 15, 2022

  1. Update README

    JezerM committed Apr 15, 2022
    Copy the full SHA
    d184772 View commit details
  2. Merge pull request #20 from JezerM/typed-themes

    Migrate default themes to TypeScript
    JezerM authored Apr 15, 2022
    Copy the full SHA
    528fb04 View commit details

Commits on Jun 9, 2022

  1. Nomenclature changes to make this compatible with web-greeter

    NodyBroadcastEvent renamed to GreeterBroadcastEvent
    Nody class renamed to Comm
    window.nody_greeter object renamed to window.greeter_comm
    JezerM committed Jun 9, 2022
    Copy the full SHA
    fc86491 View commit details
  2. Copy the full SHA
    ac9c49b View commit details
  3. Merge pull request #24 from JezerM/web-greeter-multi-monitor

    Nomenclature changes to make nody-greeter compatible with web-greeter
    JezerM authored Jun 9, 2022
    Copy the full SHA
    9428256 View commit details

Commits on Jun 14, 2022

  1. Some minimal updates

    JezerM committed Jun 14, 2022
    Copy the full SHA
    ba98a1f View commit details

Commits on Jul 1, 2022

  1. Copy the full SHA
    ef00929 View commit details

Commits on Jul 10, 2022

  1. Copy the full SHA
    da6b0e3 View commit details
Showing with 6,657 additions and 71,591 deletions.
  1. +0 −22 .eslintrc.js
  2. +64 −0 .github/actions/build/action.yml
  3. +72 −5 .github/workflows/check.yml
  4. +9 −1 .github/workflows/fix.yml
  5. +83 −38 .github/workflows/publish.yml
  6. +1 −0 .gitignore
  7. +3 −0 .gitmodules
  8. +7 −0 .prettierignore
  9. +5 −1 .prettierrc.js
  10. +64 −20 README.md
  11. +78 −29 build.js
  12. +2 −2 build/DEBIAN/control
  13. +8 −0 build/Xgreeter.patch
  14. +54 −12 build/utils.js
  15. +18 −0 compile.js
  16. +584 −0 dist/com.github.jezerm.nody-greeter.svg
  17. +14 −1 dist/nody-greeter-bash
  18. +11 −8 dist/nody-greeter-zsh
  19. +2 −2 dist/nody-greeter.desktop
  20. +29 −0 eslint.config.js
  21. +10 −13 install.js
  22. +9 −8 make.js
  23. +3,489 −9,649 package-lock.json
  24. +42 −53 package.json
  25. 0 {ts → src/common}/consts.ts
  26. +83 −0 src/common/ldm_interfaces.ts
  27. +9 −0 src/global.d.ts
  28. 0 {ts → src/main}/bindings/binding.gyp
  29. 0 {ts → src/main}/bindings/package.json
  30. +31 −0 {ts → src/main}/bindings/screensaver.cc
  31. +37 −0 src/main/bindings/screensaver.ts
  32. +263 −204 {ts → src/main}/bridge/bridge.ts
  33. +25 −23 {ts → src/main}/bridge/bridge_objects.ts
  34. +74 −61 {ts → src/main}/browser.ts
  35. +279 −0 src/main/config.ts
  36. +1 −0 src/main/env.d.ts
  37. +10 −10 {ts → src/main}/globals.ts
  38. +102 −0 src/main/index.ts
  39. +16 −0 src/main/lib/node-gtk-gio.d.ts
  40. +10 −0 src/main/lib/node-gtk-gobject.d.ts
  41. +211 −0 src/main/lib/node-gtk-lightdm.d.ts
  42. +16 −0 src/main/lib/node-gtk.d.ts
  43. +17 −17 {ts → src/main}/logger.ts
  44. +9 −9 {ts → src/main}/utils/acpi.ts
  45. +252 −0 src/main/utils/battery.ts
  46. +172 −0 src/main/utils/brightness.ts
  47. +61 −0 src/main/utils/screensaver.ts
  48. +31 −0 src/main/vite.config.ts
  49. +197 −176 ts/preload.ts → src/preload/index.ts
  50. +21 −0 src/preload/vite.config.ts
  51. +1 −0 themes
  52. +0 −34 themes/_vendor/fontawesome/LICENSE.txt
  53. +0 −4,619 themes/_vendor/fontawesome/css/all.css
  54. +0 −5 themes/_vendor/fontawesome/css/all.min.css
  55. +0 −15 themes/_vendor/fontawesome/css/brands.css
  56. +0 −5 themes/_vendor/fontawesome/css/brands.min.css
  57. +0 −4,585 themes/_vendor/fontawesome/css/fontawesome.css
  58. +0 −5 themes/_vendor/fontawesome/css/fontawesome.min.css
  59. +0 −15 themes/_vendor/fontawesome/css/regular.css
  60. +0 −5 themes/_vendor/fontawesome/css/regular.min.css
  61. +0 −16 themes/_vendor/fontawesome/css/solid.css
  62. +0 −5 themes/_vendor/fontawesome/css/solid.min.css
  63. +0 −371 themes/_vendor/fontawesome/css/svg-with-js.css
  64. +0 −5 themes/_vendor/fontawesome/css/svg-with-js.min.css
  65. +0 −2,172 themes/_vendor/fontawesome/css/v4-shims.css
  66. +0 −5 themes/_vendor/fontawesome/css/v4-shims.min.css
  67. +0 −4,467 themes/_vendor/fontawesome/js/all.js
  68. +0 −5 themes/_vendor/fontawesome/js/all.min.js
  69. +0 −586 themes/_vendor/fontawesome/js/brands.js
  70. +0 −5 themes/_vendor/fontawesome/js/brands.min.js
  71. +0 −998 themes/_vendor/fontawesome/js/conflict-detection.js
  72. +0 −5 themes/_vendor/fontawesome/js/conflict-detection.min.js
  73. +0 −2,483 themes/_vendor/fontawesome/js/fontawesome.js
  74. +0 −5 themes/_vendor/fontawesome/js/fontawesome.min.js
  75. +0 −280 themes/_vendor/fontawesome/js/regular.js
  76. +0 −5 themes/_vendor/fontawesome/js/regular.min.js
  77. +0 −1,130 themes/_vendor/fontawesome/js/solid.js
  78. +0 −5 themes/_vendor/fontawesome/js/solid.min.js
  79. +0 −68 themes/_vendor/fontawesome/js/v4-shims.js
  80. +0 −5 themes/_vendor/fontawesome/js/v4-shims.min.js
  81. BIN themes/_vendor/fontawesome/webfonts/fa-brands-400.eot
  82. +0 −3,717 themes/_vendor/fontawesome/webfonts/fa-brands-400.svg
  83. BIN themes/_vendor/fontawesome/webfonts/fa-brands-400.ttf
  84. BIN themes/_vendor/fontawesome/webfonts/fa-brands-400.woff
  85. BIN themes/_vendor/fontawesome/webfonts/fa-brands-400.woff2
  86. BIN themes/_vendor/fontawesome/webfonts/fa-regular-400.eot
  87. +0 −801 themes/_vendor/fontawesome/webfonts/fa-regular-400.svg
  88. BIN themes/_vendor/fontawesome/webfonts/fa-regular-400.ttf
  89. BIN themes/_vendor/fontawesome/webfonts/fa-regular-400.woff
  90. BIN themes/_vendor/fontawesome/webfonts/fa-regular-400.woff2
  91. BIN themes/_vendor/fontawesome/webfonts/fa-solid-900.eot
  92. +0 −5,034 themes/_vendor/fontawesome/webfonts/fa-solid-900.svg
  93. BIN themes/_vendor/fontawesome/webfonts/fa-solid-900.ttf
  94. BIN themes/_vendor/fontawesome/webfonts/fa-solid-900.woff
  95. BIN themes/_vendor/fontawesome/webfonts/fa-solid-900.woff2
  96. BIN themes/_vendor/fonts/TTF/OpenSans-Light.ttf
  97. BIN themes/_vendor/fonts/TTF/OpenSans-Regular.ttf
  98. +0 −3 themes/_vendor/js/js.cookie.min.js
  99. +0 −970 themes/_vendor/js/mock.js
  100. +0 −20 themes/_vendor/material-icons/LICENSE
  101. +0 −25 themes/_vendor/material-icons/README.md
  102. +0 −24,094 themes/_vendor/material-icons/css/materialdesignicons.css
  103. +0 −16 themes/_vendor/material-icons/css/materialdesignicons.css.map
  104. +0 −3 themes/_vendor/material-icons/css/materialdesignicons.min.css
  105. +0 −16 themes/_vendor/material-icons/css/materialdesignicons.min.css.map
  106. BIN themes/_vendor/material-icons/fonts/materialdesignicons-webfont.eot
  107. BIN themes/_vendor/material-icons/fonts/materialdesignicons-webfont.ttf
  108. BIN themes/_vendor/material-icons/fonts/materialdesignicons-webfont.woff
  109. BIN themes/_vendor/material-icons/fonts/materialdesignicons-webfont.woff2
  110. +0 −1 themes/dracula/.prettierignore
  111. +0 −42 themes/dracula/README.md
  112. BIN themes/dracula/assets/dracula.png
  113. BIN themes/dracula/assets/screenshots/theme-show-1.png
  114. BIN themes/dracula/assets/screenshots/theme-show-2.png
  115. BIN themes/dracula/assets/screenshots/theme-show-3.png
  116. BIN themes/dracula/assets/window-blurred.png
  117. +0 −21 themes/dracula/css/DRACULA
  118. +0 −644 themes/dracula/css/style.css
  119. +0 −171 themes/dracula/index.html
  120. +0 −2 themes/dracula/index.yml
  121. +0 −98 themes/dracula/js/accounts.js
  122. +0 −126 themes/dracula/js/authenticate.js
  123. +0 −104 themes/dracula/js/backgrounds.js
  124. +0 −40 themes/dracula/js/battery.js
  125. +0 −28 themes/dracula/js/brightness.js
  126. +0 −156 themes/dracula/js/debug.js
  127. +0 −56 themes/dracula/js/index.js
  128. +0 −85 themes/dracula/js/layouts.js
  129. +0 −89 themes/dracula/js/power.js
  130. +0 −31 themes/dracula/js/secondary.js
  131. +0 −104 themes/dracula/js/sessions.js
  132. +0 −75 themes/dracula/js/sidebar.js
  133. +0 −56 themes/dracula/js/time-date.js
  134. +0 −32 themes/dracula/secondary.html
  135. +0 −33 themes/gruvbox/README.md
  136. +0 −1 themes/gruvbox/assets/bubbles.svg
  137. +0 −1 themes/gruvbox/assets/death star.svg
  138. BIN themes/gruvbox/assets/screenshots/theme-show-1.png
  139. BIN themes/gruvbox/assets/screenshots/theme-show-2.png
  140. +0 −1 themes/gruvbox/assets/topography.svg
  141. BIN themes/gruvbox/assets/users/Arsene.jpg
  142. BIN themes/gruvbox/assets/users/Ice princess.jpg
  143. +0 −463 themes/gruvbox/css/style.css
  144. +0 −128 themes/gruvbox/index.html
  145. +0 −2 themes/gruvbox/index.yml
  146. +0 −131 themes/gruvbox/js/accounts.js
  147. +0 −91 themes/gruvbox/js/authenticate.js
  148. +0 −40 themes/gruvbox/js/battery.js
  149. +0 −28 themes/gruvbox/js/brightness.js
  150. +0 −157 themes/gruvbox/js/debug.js
  151. +0 −60 themes/gruvbox/js/index.js
  152. +0 −85 themes/gruvbox/js/layouts.js
  153. +0 −89 themes/gruvbox/js/power.js
  154. +0 −28 themes/gruvbox/js/secondary.js
  155. +0 −106 themes/gruvbox/js/sessions.js
  156. +0 −26 themes/gruvbox/js/time-date.js
  157. +0 −27 themes/gruvbox/secondary.html
  158. +0 −218 themes/simple/index.html
  159. BIN themes/simple/power_button.png
  160. +0 −22 ts/bindings/screensaver.ts
  161. +0 −252 ts/config.ts
  162. +0 −69 ts/index.ts
  163. +0 −49 ts/ldm_interfaces.ts
  164. +0 −248 ts/utils/battery.ts
  165. +0 −170 ts/utils/brightness.ts
  166. +0 −50 ts/utils/screensaver.ts
  167. +12 −71 tsconfig.json
  168. +24 −0 tsconfig.main.json
  169. +27 −0 tsconfig.preload.json
  170. +8 −12 uninstall.js
22 changes: 0 additions & 22 deletions .eslintrc.js

This file was deleted.

64 changes: 64 additions & 0 deletions .github/actions/build/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# Action based on @MateuszStudiosCompany's web-greeter action
name: "Build nody-greeter"
description: "Builds nody-greeter"
inputs:
target-distro:
required: true
description: "Target distro"

runs:
using: "composite"
steps:
-
name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
-
name: Install dependencies
shell: bash
run: |
sudo apt update
sudo apt install python3 build-essential gobject-introspection liblightdm-gobject-1-dev libgirepository1.0-dev libcairo2-dev libxcb1-dev libx11-dev
sudo apt install dpkg
-
name: Setup node
uses: actions/setup-node@v2
with:
node-version: 18
cache: npm
-
name: Install npm dependencies
shell: bash
run: npm install
-
name: Build nody-greeter
shell: bash
run: npm run build
-
name: Prepare deb build (common)
shell: bash
run: |
package_size="$(du -s build/unpacked | cut -f1)"
sed -i "s/Installed-Size:.*/Installed-Size: ${package_size}/g" build/DEBIAN/control
cp -r build/DEBIAN/ build/unpacked/
-
name: Prepare deb build (for Debian)
shell: bash
if: ${{ inputs.target-distro == 'debian' }}
run: |
sed -i "s/liblightdm-gobject-1-dev/liblightdm-gobject-dev/g" build/unpacked/DEBIAN/control
-
name: Build deb
shell: bash
run: |
cd build/
dpkg-deb --root-owner-group --build unpacked "nody-greeter.deb"
dpkg --info "./nody-greeter.deb"
-
name: 'Upload Artifact'
uses: actions/upload-artifact@v2
with:
name: nody-greeter-${{ inputs.target-distro }}
path: ./build/nody-greeter.deb
retention-days: 7
77 changes: 72 additions & 5 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,64 @@
name: ESLint and Prettier
name: CI Checks

on:
push:
branches: [ master ]
paths:
# rerun when typescript files change
- "ts/**"
# rerun when theme files change
- "themes/gruvbox/**"
- "themes/dracula/**"
# rerun when workflow is changed
- ".github/workflows/check.yml"
# rerun when packages change
- "package.json"
- "package-lock.json"
pull_request:
branches: [ master ]
workflow_dispatch:

jobs:

typescript:

name: Type-Check node ${{ matrix.node }}
runs-on: ubuntu-latest
strategy:
matrix:
node: [ 18 ]

steps:
-
name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
-
name: Setup node
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
cache: npm
-
name: Install npm dependencies
run: npm install
-
name: Run Typescript Compiler
run: npm run type-check

eslint:

name: ESLint node ${{ matrix.node }}
runs-on: ubuntu-latest
strategy:
matrix:
node: [ 12, 14, 16 ]
node: [ 18 ]

steps:
-
name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
-
name: Setup node
uses: actions/setup-node@v2
@@ -42,12 +78,14 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node: [ 12, 14, 16 ]
node: [ 18 ]

steps:
-
name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
-
name: Setup node
uses: actions/setup-node@v2
@@ -60,3 +98,32 @@ jobs:
-
name: Run Prettier
run: npm run prettier

package-lock:

name: package-lock.json node ${{ matrix.node }}
runs-on: ubuntu-latest
strategy:
matrix:
node: [ 18 ]

steps:
-
name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
-
name: Setup node
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
cache: npm
-
name: Install npm dependencies
run: npm install
-
name: Check package-lock.json is unchanged
# Fail if package-lock.json is changed when installing packages,
# indicating that it wasn't updated when packages were last changed
run: git diff --exit-code --color HEAD -- package-lock.json
10 changes: 9 additions & 1 deletion .github/workflows/fix.yml
Original file line number Diff line number Diff line change
@@ -14,21 +14,29 @@ jobs:
-
name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
-
name: Setup node
uses: actions/setup-node@v2
with:
node-version: 14
node-version: 18
cache: npm
-
name: Install npm dependencies
run: npm install
-
name: Run ESLint
run: npm run lint:fix
-
name: Run ESLint for themes
run: npm run lint:themes:fix
-
name: Run Prettier
run: npm run prettier:fix
-
name: Run Prettier for themes
run: npm run prettier:themes:fix
-
run: |
git restore package-lock.json
121 changes: 83 additions & 38 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -7,44 +7,89 @@ on:
workflow_dispatch:

jobs:
build:
name: Publish binaries

publish-ubuntu:
name: Publish binaries (Ubuntu)
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
-
name: Run build action
uses: "./.github/actions/build"
with:
target-distro: ubuntu
-
name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: build/nody-greeter.deb
asset_name: nody-greeter-$tag-ubuntu.deb
tag: ${{ github.ref }}
overwrite: true

publish-debian:
name: Publish binaries (Debian)
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
-
name: Run build action
uses: "./.github/actions/build"
with:
target-distro: debian
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: build/nody-greeter.deb
asset_name: nody-greeter-$tag-debian.deb
tag: ${{ github.ref }}
overwrite: true

# This may be rewritten to not use external workflows
publish-void:
name: Publish binaries (Void)
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
-
name: Install dependencies
run: |
sudo apt update
sudo apt install python3 build-essential gobject-introspection liblightdm-gobject-1-dev libgirepository1.0-dev libcairo2-dev libxcb1-dev libx11-dev
sudo apt install dpkg
-
name: Setup node
uses: actions/setup-node@v2
with:
node-version: 14
cache: npm
-
name: Install npm dependencies
run: npm install
-
name: Build nody-greeter
run: npm run build
-
name: Build deb package
run: |
cd build/
cp -r DEBIAN/ unpacked/
dpkg-deb --root-owner-group --build unpacked "nody-greeter.deb"
dpkg --info "./nody-greeter.deb"
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: build/nody-greeter.deb
asset_name: nody-greeter-$tag.deb
tag: ${{ github.ref }}
overwrite: true
-
name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
-
name: Dispatch void-linux build
uses: the-actions-org/workflow-dispatch@v4
with:
workflow: build.yml
repo: JezerM/nody-greeter-void
ref: master
token: ${{ secrets.PERSONAL_TOKEN }}
inputs: "{}"
wait-for-completion: true
-
name: Download artifact
uses: dawidd6/action-download-artifact@v2
with:
repo: JezerM/nody-greeter-void
github_token: ${{ secrets.PERSONAL_TOKEN }}
workflow: build.yml
branch: master
path: artifacts/
-
name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref }}
file: artifacts/**/*.xbps
file_glob: true
overwrite: true
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
node_modules/
build/*
js/
out/
!themes/**/js
!build/DEBIAN
!build/utils.js
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "themes"]
path = themes
url = https://github.com/JezerM/web-greeter-themes.git
7 changes: 7 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
themes/
out/
build/unpacked
build/nody-asar
.github/
dist/
*.json
6 changes: 5 additions & 1 deletion .prettierrc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
module.exports = {
/**
* @see https://prettier.io/docs/en/configuration.html
* @type {import("prettier").Config}
*/
export default {
trailingComma: "es5",
tabWidth: 2,
semi: true,
Loading