Skip to content

Commit

Permalink
fix: Create database files. Update release name. Bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
gonzalogarciajaubert committed Oct 28, 2021
1 parent f6add76 commit 71a9670
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
id: create_release
with:
tag_name: ${{ steps.get_version.outputs.VERSION }}
body: Automated Electron Deployment
body: Automated Plasmido Mac Deployment
name: Release ${{ steps.get_version.outputs.VERSION }}
draft: false
prerelease: false
Expand Down
2 changes: 1 addition & 1 deletion README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ image::doc/images/Intro%202.png[]
== Releases

* Version 0.1.0:
** Mac version: https://github.com/theam/plasmido/releases/download/v0.1.0/plasmido-darwin-v0.1.0.zip
** Mac version: https://github.com/theam/plasmido/releases/download/v0.1.0/plasmido-darwin-v0.1.1.zip

== Development

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@theagilemonkeys/plasmido",
"version": "0.1.0",
"version": "0.1.1",
"description": "Plasmido",
"keywords": [
"kafka",
Expand Down
6 changes: 4 additions & 2 deletions src-electron/nedb/database.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
/* eslint-disable @typescript-eslint/no-explicit-any */
import Nedb from 'nedb';
import path from 'path';
import { app } from '@electron/remote';
// @ts-ignore
import {remote} from 'electron';

const DATABASE_FOLDER = '/db/';

Expand All @@ -10,7 +11,8 @@ export const getDatabasePath = (fileName:string) => {
if (process.env.DEV) {
return '.' + filePath;
}
return path.join(app.getPath('userData'), DATABASE_FOLDER + fileName);
const userData = remote.app.getPath('userData');
return path.join(userData, filePath);
}

export const asyncFindFirstBy = (db: Nedb, query: any, sort: any) => {
Expand Down

0 comments on commit 71a9670

Please sign in to comment.