Skip to content

Commit

Permalink
build: bump project v1.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Aetherinox committed Jul 14, 2024
1 parent 9b0a944 commit bd53cf6
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 26 deletions.
42 changes: 21 additions & 21 deletions gistr.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,54 +31,54 @@
- npm run env-version
*/

const fs = require('fs');
const { v5: uuid } = require('uuid');
const fs = require('fs')
const { v5: uuid } = require('uuid')

/*
* declrations > package.json
*/

const { version, repository } = JSON.parse(fs.readFileSync('package.json'));
const args = process.argv.slice(2, process.argv.length);
const action = args[0];
const { version, repository } = JSON.parse(fs.readFileSync('package.json'))
const args = process.argv.slice(2, process.argv.length)
const action = args[0]
// const a = args[ 1 ];
// const b = args[ 2 ];

if (action === 'guid') {
console.log(`${process.env.GUID}`);
console.log(`${process.env.GUID}`)
} else if (action === 'setup') {
fs.writeFileSync('.env', '', (err) => {
if (err) {
console.error(err);
console.error(err)
} else {
console.log(`Wrote to .env successfully`);
console.log(`Wrote to .env successfully`)
}
});
})
} else if (action === 'generate') {
const buildGuid = uuid(`${repository.url}`, uuid.URL);
const buildUuid = uuid(version, buildGuid);
const buildGuid = uuid(`${repository.url}`, uuid.URL)
const buildUuid = uuid(version, buildGuid)

const ids = `
VERSION=${version}
GUID=${buildGuid}
UUID=${buildUuid}
`;
`

console.log(version);
console.log(buildGuid);
console.log(buildUuid);
console.log(version)
console.log(buildGuid)
console.log(buildUuid)

fs.writeFileSync('.env', ids, (err) => {
if (err) {
console.error(`Could not write env vars: ${err}`);
console.error(`Could not write env vars: ${err}`)
} else {
console.log(`Wrote env vars to .env`);
console.log(`Wrote env vars to .env`)
}
});
})
} else if (action === 'uuid') {
console.log(`${process.env.UUID}`);
console.log(`${process.env.UUID}`)
} else {
console.log(version);
console.log(version)
}

process.exit(0);
process.exit(0)
4 changes: 2 additions & 2 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"id": "gistr",
"name": "Gistr",
"version": "1.6.8",
"version": "1.7.0",
"minAppVersion": "1.0.0",
"description": "Integrate Opengist and Github gists into your notes, allowing you to create, update, and share between your notes and gist services",
"author": "Aetherinox",
"authorUrl": "https://github.com/Aetherinox",
"isDesktopOnly": false
}
}
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": "gistr",
"version": "1.6.8",
"version": "1.7.0",
"description": "Integrate Opengist and Github gists into your notes, allowing you to create, update, and share between your notes and gist services",
"author": "Aetherinox",
"license": "MIT",
Expand Down

0 comments on commit bd53cf6

Please sign in to comment.