Skip to content

Commit

Permalink
Internal API to get and save the list of Applications (#297)
Browse files Browse the repository at this point in the history
* applications list and save API

Signed-off-by: marcopiraccini <[email protected]>

* version bump 0.9.0

Signed-off-by: marcopiraccini <[email protected]>

---------

Signed-off-by: marcopiraccini <[email protected]>
  • Loading branch information
marcopiraccini authored Feb 29, 2024
1 parent e51a650 commit b513d3f
Show file tree
Hide file tree
Showing 11 changed files with 6,846 additions and 3,690 deletions.
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@ jobs:
with:
node-version: 18
- run: npm ci
- run: npm run fix-node-deps
- run: npm run test

11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,17 @@
$ npm install
```

### Fix dependencies

The native dependencies are build / downloaded for electron.
If you need to launch the test (run in `node`), you need to fix the dependencies.

```bash
$ npm run fix-node-deps
```
You can rollback the fix with `npm run fix-electron-deps`.


### Development

### UI Components Live
Expand Down
2 changes: 2 additions & 0 deletions electron-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ files:
- '!electron.vite.config.{js,ts,mjs,cjs}'
- '!{.eslintignore,.eslintrc.cjs,.prettierignore,.prettierrc.yaml,dev-app-update.yml,CHANGELOG.md,README.md}'
- '!{.env,.env.*,.npmrc,pnpm-lock.yaml}'
extraFiles:
- 'migrations'
asarUnpack:
- resources/**
win:
Expand Down
7 changes: 7 additions & 0 deletions migrations/001.do.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
CREATE TABLE IF NOT EXISTS applications (
id INTEGER PRIMARY KEY,
name VARCHAR(255) NOT NULL,
path VARCHAR(255) NOT NULL,
created_at timestamp(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
updated_at timestamp(3) NOT NULL DEFAULT CURRENT_TIMESTAMP
);
Loading

0 comments on commit b513d3f

Please sign in to comment.