Skip to content

Commit

Permalink
1.0.9 Github action
Browse files Browse the repository at this point in the history
  • Loading branch information
TfT Hacker committed Nov 5, 2024
1 parent 9a159cc commit 369a22b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 14 deletions.
15 changes: 4 additions & 11 deletions esbuild.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,13 @@ import builtins from 'builtin-modules';
import esbuild from 'esbuild';
import process from 'process';


fs.copyFile("manifest.json", "build/manifest.json", (err) => {
if (err) console.log(err);
});
fs.copyFile("styles.css", "build/styles.css", (err) => {
if (err) console.log(err);
});


const prod = process.argv[2] === 'production';

const context = await esbuild.context({
Expand Down Expand Up @@ -46,15 +44,10 @@ const context = await esbuild.context({
outfile: 'build/main.js',
});


if (prod) {
await context.rebuild();
fs.copyFile('manifest.json', 'build/manifest.json', (err) => {
if (err) console.log(err);
});
fs.copyFile('styles.css', 'build/styles.css', (err) => {
if (err) console.log(err);
});
process.exit(0);
await context.rebuild();
process.exit(0);
} else {
await context.watch();
await context.watch();
}
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "helpmate",
"name": "HelpMate",
"version": "1.0.8",
"version": "1.0.9",
"minAppVersion": "1.7.2",
"description": "Integrating help systems into the Obsidian UI.",
"author": "TfTHacker",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "helpmate",
"version": "1.0.8",
"version": "1.0.9",
"description": "HelpMate - integrating help into Obsidian",
"main": "main.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion versions.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"1.0.0": "1.4.16",
"1.0.8": "1.7.2"
"1.0.9": "1.7.2"
}

0 comments on commit 369a22b

Please sign in to comment.