-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: testing auto updates with gist (#20)
* feat: added readme file * feat: search support and bug fixes (#4) * fix: Auto updater with github gist (#6) * feat: search support and bug fixes * fix: auto updater Added github gist for testing auto updates * fix: testing macos build (#8) * feat: search support and bug fixes * fix: auto updater Added github gist for testing auto updates * fix: testing build for macos * fix: testing macos cert (#10) * feat: search support and bug fixes * fix: auto updater Added github gist for testing auto updates * fix: testing build for macos * fix: testing macos cert * fix: macos cert (#12) * feat: search support and bug fixes * fix: auto updater Added github gist for testing auto updates * fix: testing build for macos * fix: testing macos cert * fix: building macos cert * release (#13) (#14) * feat: added readme file * feat: search support and bug fixes (#4) * fix: Auto updater with github gist (#6) * feat: search support and bug fixes * fix: auto updater Added github gist for testing auto updates * fix: testing macos build (#8) * feat: search support and bug fixes * fix: auto updater Added github gist for testing auto updates * fix: testing build for macos * fix: testing macos cert (#10) * feat: search support and bug fixes * fix: auto updater Added github gist for testing auto updates * fix: testing build for macos * fix: testing macos cert * fix: macos cert (#12) * feat: search support and bug fixes * fix: auto updater Added github gist for testing auto updates * fix: testing build for macos * fix: testing macos cert * fix: building macos cert * disabled macos support (#15) * feat: search support and bug fixes * fix: auto updater Added github gist for testing auto updates * fix: testing build for macos * fix: testing macos cert * fix: building macos cert * release (#13) * feat: added readme file * feat: search support and bug fixes (#4) * fix: Auto updater with github gist (#6) * feat: search support and bug fixes * fix: auto updater Added github gist for testing auto updates * fix: testing macos build (#8) * feat: search support and bug fixes * fix: auto updater Added github gist for testing auto updates * fix: testing build for macos * fix: testing macos cert (#10) * feat: search support and bug fixes * fix: auto updater Added github gist for testing auto updates * fix: testing build for macos * fix: testing macos cert * fix: macos cert (#12) * feat: search support and bug fixes * fix: auto updater Added github gist for testing auto updates * fix: testing build for macos * fix: testing macos cert * fix: building macos cert * update: disabled mac and linux support * Dev (#17) * feat: search support and bug fixes * fix: auto updater Added github gist for testing auto updates * fix: testing build for macos * fix: testing macos cert * fix: building macos cert * release (#13) * feat: added readme file * feat: search support and bug fixes (#4) * fix: Auto updater with github gist (#6) * feat: search support and bug fixes * fix: auto updater Added github gist for testing auto updates * fix: testing macos build (#8) * feat: search support and bug fixes * fix: auto updater Added github gist for testing auto updates * fix: testing build for macos * fix: testing macos cert (#10) * feat: search support and bug fixes * fix: auto updater Added github gist for testing auto updates * fix: testing build for macos * fix: testing macos cert * fix: macos cert (#12) * feat: search support and bug fixes * fix: auto updater Added github gist for testing auto updates * fix: testing build for macos * fix: testing macos cert * fix: building macos cert * update: disabled mac and linux support * disabled mac * feat: testing auto updates with gist (#19) * feat: search support and bug fixes * fix: auto updater Added github gist for testing auto updates * fix: testing build for macos * fix: testing macos cert * fix: building macos cert * release (#13) * feat: added readme file * feat: search support and bug fixes (#4) * fix: Auto updater with github gist (#6) * feat: search support and bug fixes * fix: auto updater Added github gist for testing auto updates * fix: testing macos build (#8) * feat: search support and bug fixes * fix: auto updater Added github gist for testing auto updates * fix: testing build for macos * fix: testing macos cert (#10) * feat: search support and bug fixes * fix: auto updater Added github gist for testing auto updates * fix: testing build for macos * fix: testing macos cert * fix: macos cert (#12) * feat: search support and bug fixes * fix: auto updater Added github gist for testing auto updates * fix: testing build for macos * fix: testing macos cert * fix: building macos cert * update: disabled mac and linux support * disabled mac * feat: testing auto updater with gist * feat: testing auto updater with gist
- Loading branch information
Showing
18 changed files
with
242 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<h1 class="mt-8">Scribe v0.1.0</h1><p>A Simple opensource note taking app perfect for quick notes or detailed plans, stay on top of your day and never lose track of your ideas again.</p><p>This markdown was created using scribe.</p><h2 class="mt-8">Quick notes</h2><p>Press <code class="px-1 bg-gray-200 rounded">Ctrl+space</code> from anywhere to jot down notes without having to worry about where to save them. The app will automatically save the contents in a <code class="px-1 bg-gray-200 rounded">shortnotes.md</code> in the selected directory.</p><h1 class="mt-8">Settings</h1><p>All notes by default are saved in the installation path under a <code class="px-1 bg-gray-200 rounded">docs</code> folder.</p><p>You can modify the save path by clicking on <code class="px-1 bg-gray-200 rounded">File > Settings</code>.</p><p><strong>Note: You must move the files manually to the new save directory.</strong></p><h1 class="mt-8">Key features</h1><ul class="px-2 mx-2 my-2"><li class="my-1"><p>Built for speed with rust.</p></li><li class="my-1"><p>Close the app and take notes from anywhere.</p></li><li class="my-1"><p>Markdown shortcuts make it easy to format the text while typing.</p><p>To test that, start a new line and type <code class="px-1 bg-gray-200 rounded">#</code> followed by a space to get a heading. Try <code class="px-1 bg-gray-200 rounded">#</code>, <code class="px-1 bg-gray-200 rounded">##</code>, <code class="px-1 bg-gray-200 rounded">###</code>, <code class="px-1 bg-gray-200 rounded">####</code>, <code class="px-1 bg-gray-200 rounded">#####</code>, <code class="px-1 bg-gray-200 rounded">######</code> for different levels.</p></li><li class="my-1"><p>You can also try <code class="px-1 bg-gray-200 rounded">></code> for blockquotes, <code class="px-1 bg-gray-200 rounded">*</code>, <code class="px-1 bg-gray-200 rounded">-</code> or <code class="px-1 bg-gray-200 rounded">+</code> for bullet lists, or <code class="px-1 bg-gray-200 rounded">`foobar`</code> to highlight code, <code class="px-1 bg-gray-200 rounded">~~tildes~~</code> to strike text, or <code class="px-1 bg-gray-200 rounded">==equal signs==</code> to highlight text, <code class="px-1 bg-gray-200 rounded">(c)</code> to see how it’s converted to a proper © character. You can also try <code class="px-1 bg-gray-200 rounded">-></code>, <code class="px-1 bg-gray-200 rounded">>></code>, <code class="px-1 bg-gray-200 rounded">1/2</code>, <code class="px-1 bg-gray-200 rounded">!=</code>, or <code class="px-1 bg-gray-200 rounded">--</code>, <code class="px-1 bg-gray-200 rounded">**</code> for bold and <code class="px-1 bg-gray-200 rounded">_Italic_</code> <em>for italic.</em></p></li><li class="my-1"><p>An inline toolbar is also available when you select text.</p></li></ul><h1 class="mt-8">Roadmap</h1><ul class="px-2 mx-2 my-2"><li class="my-1"><p>Integration with notion.</p></li></ul> | ||
<h1 class="mt-8">Scribe v0.1.0</h1><p>A Simple opensource note taking app perfect for quick notes or detailed plans, stay on top of your day and never lose track of your ideas again.</p><p>This markdown was created using scribe.</p><h2 class="mt-8">Quick notes</h2><p>Press <code class="px-1 bg-gray-200 rounded">Ctrl+Enter</code>, <code class="px-1 bg-gray-200 rounded">Cmd+Enter</code> on mac from anywhere to jot down notes without having to worry about where to save them. The app will automatically save the contents in a <code class="px-1 bg-gray-200 rounded">shortnotes.md</code> in the selected directory.</p><h1 class="mt-8">Settings</h1><p>All notes by default are saved in the installation path under a <code class="px-1 bg-gray-200 rounded">docs</code> folder.</p><p>You can modify the save path by clicking on <code class="px-1 bg-gray-200 rounded">File > Settings</code>.</p><p><strong>Note: You must move the files manually to the new save directory.</strong></p><h1 class="mt-8">Key features</h1><ul class="px-2 mx-2 my-2"><li class="my-1"><p>Built for speed with rust.</p></li><li class="my-1"><p>Close the app and take notes from anywhere.</p></li><li class="my-1"><p>Markdown shortcuts make it easy to format the text while typing.</p><p>To test that, start a new line and type <code class="px-1 bg-gray-200 rounded">#</code> followed by a space to get a heading. Try <code class="px-1 bg-gray-200 rounded">#</code>, <code class="px-1 bg-gray-200 rounded">##</code>, <code class="px-1 bg-gray-200 rounded">###</code>, <code class="px-1 bg-gray-200 rounded">####</code>, <code class="px-1 bg-gray-200 rounded">#####</code>, <code class="px-1 bg-gray-200 rounded">######</code> for different levels.</p></li><li class="my-1"><p>You can also try <code class="px-1 bg-gray-200 rounded">></code> for blockquotes, <code class="px-1 bg-gray-200 rounded">*</code>, <code class="px-1 bg-gray-200 rounded">-</code> or <code class="px-1 bg-gray-200 rounded">+</code> for bullet lists, or <code class="px-1 bg-gray-200 rounded">`foobar`</code> to highlight code, <code class="px-1 bg-gray-200 rounded">~~tildes~~</code> to strike text, or <code class="px-1 bg-gray-200 rounded">==equal signs==</code> to highlight text, <code class="px-1 bg-gray-200 rounded">(c)</code> to see how it’s converted to a proper © character. You can also try <code class="px-1 bg-gray-200 rounded">-></code>, <code class="px-1 bg-gray-200 rounded">>></code>, <code class="px-1 bg-gray-200 rounded">1/2</code>, <code class="px-1 bg-gray-200 rounded">!=</code>, or <code class="px-1 bg-gray-200 rounded">--</code>, <code class="px-1 bg-gray-200 rounded">**</code> for bold and <code class="px-1 bg-gray-200 rounded">_Italic_</code> <em>for italic.</em></p></li><li class="my-1"><p>An inline toolbar is also available when you select text.</p></li></ul><h1 class="mt-8">Roadmap</h1><ul class="px-2 mx-2 my-2"><li class="my-1"><p>Integration with notion.</p></li></ul> |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<h1 class="mt-8">Scribe v0.1.0</h1><p>A Simple opensource note taking app perfect for quick notes or detailed plans, stay on top of your day and never lose track of your ideas again.</p><p>This markdown was created using scribe.</p><h2 class="mt-8">Quick notes</h2><p>Press <code class="px-1 bg-gray-200 rounded">Ctrl+space</code> from anywhere to jot down notes without having to worry about where to save them. The app will automatically save the contents in a <code class="px-1 bg-gray-200 rounded">shortnotes.md</code> in the selected directory.</p><h1 class="mt-8">Settings</h1><p>All notes by default are saved in the installation path under a <code class="px-1 bg-gray-200 rounded">docs</code> folder.</p><p>You can modify the save path by clicking on <code class="px-1 bg-gray-200 rounded">File > Settings</code>.</p><p><strong>Note: You must move the files manually to the new save directory.</strong></p><h1 class="mt-8">Key features</h1><ul class="px-2 mx-2 my-2"><li class="my-1"><p>Built for speed with rust.</p></li><li class="my-1"><p>Close the app and take notes from anywhere.</p></li><li class="my-1"><p>Markdown shortcuts make it easy to format the text while typing.</p><p>To test that, start a new line and type <code class="px-1 bg-gray-200 rounded">#</code> followed by a space to get a heading. Try <code class="px-1 bg-gray-200 rounded">#</code>, <code class="px-1 bg-gray-200 rounded">##</code>, <code class="px-1 bg-gray-200 rounded">###</code>, <code class="px-1 bg-gray-200 rounded">####</code>, <code class="px-1 bg-gray-200 rounded">#####</code>, <code class="px-1 bg-gray-200 rounded">######</code> for different levels.</p></li><li class="my-1"><p>You can also try <code class="px-1 bg-gray-200 rounded">></code> for blockquotes, <code class="px-1 bg-gray-200 rounded">*</code>, <code class="px-1 bg-gray-200 rounded">-</code> or <code class="px-1 bg-gray-200 rounded">+</code> for bullet lists, or <code class="px-1 bg-gray-200 rounded">`foobar`</code> to highlight code, <code class="px-1 bg-gray-200 rounded">~~tildes~~</code> to strike text, or <code class="px-1 bg-gray-200 rounded">==equal signs==</code> to highlight text, <code class="px-1 bg-gray-200 rounded">(c)</code> to see how it’s converted to a proper © character. You can also try <code class="px-1 bg-gray-200 rounded">-></code>, <code class="px-1 bg-gray-200 rounded">>></code>, <code class="px-1 bg-gray-200 rounded">1/2</code>, <code class="px-1 bg-gray-200 rounded">!=</code>, or <code class="px-1 bg-gray-200 rounded">--</code>, <code class="px-1 bg-gray-200 rounded">**</code> for bold and <code class="px-1 bg-gray-200 rounded">_Italic_</code> <em>for italic.</em></p></li><li class="my-1"><p>An inline toolbar is also available when you select text.</p></li></ul><h1 class="mt-8">Roadmap</h1><ul class="px-2 mx-2 my-2"><li class="my-1"><p>Integration with notion.</p></li></ul> | ||
<h1 class="mt-8">Scribe v0.1.0</h1><p>A Simple opensource note taking app perfect for quick notes or detailed plans, stay on top of your day and never lose track of your ideas again.</p><p>This markdown was created using scribe.</p><h2 class="mt-8">Quick notes</h2><p>Press <code class="px-1 bg-gray-200 rounded">Ctrl+Enter</code>, <code class="px-1 bg-gray-200 rounded">Cmd+Enter</code> on Macos from anywhere to jot down notes without having to worry about where to save them. The app will automatically save the contents in a <code class="px-1 bg-gray-200 rounded">shortnotes.md</code> in the selected directory.</p><h1 class="mt-8">Settings</h1><p>All notes by default are saved in the installation path under a <code class="px-1 bg-gray-200 rounded">docs</code> folder.</p><p>You can modify the save path by clicking on <code class="px-1 bg-gray-200 rounded">File > Settings</code>.</p><p><strong>Note: You must move the files manually to the new save directory.</strong></p><h1 class="mt-8">Key features</h1><ul class="px-2 mx-2 my-2"><li class="my-1"><p>Built for speed with rust.</p></li><li class="my-1"><p>Close the app and take notes from anywhere.</p></li><li class="my-1"><p>Markdown shortcuts make it easy to format the text while typing.</p><p>To test that, start a new line and type <code class="px-1 bg-gray-200 rounded">#</code> followed by a space to get a heading. Try <code class="px-1 bg-gray-200 rounded">#</code>, <code class="px-1 bg-gray-200 rounded">##</code>, <code class="px-1 bg-gray-200 rounded">###</code>, <code class="px-1 bg-gray-200 rounded">####</code>, <code class="px-1 bg-gray-200 rounded">#####</code>, <code class="px-1 bg-gray-200 rounded">######</code> for different levels.</p></li><li class="my-1"><p>You can also try <code class="px-1 bg-gray-200 rounded">></code> for blockquotes, <code class="px-1 bg-gray-200 rounded">*</code>, <code class="px-1 bg-gray-200 rounded">-</code> or <code class="px-1 bg-gray-200 rounded">+</code> for bullet lists, or <code class="px-1 bg-gray-200 rounded">`foobar`</code> to highlight code, <code class="px-1 bg-gray-200 rounded">~~tildes~~</code> to strike text, or <code class="px-1 bg-gray-200 rounded">==equal signs==</code> to highlight text, <code class="px-1 bg-gray-200 rounded">(c)</code> to see how it’s converted to a proper © character. You can also try <code class="px-1 bg-gray-200 rounded">-></code>, <code class="px-1 bg-gray-200 rounded">>></code>, <code class="px-1 bg-gray-200 rounded">1/2</code>, <code class="px-1 bg-gray-200 rounded">!=</code>, or <code class="px-1 bg-gray-200 rounded">--</code>, <code class="px-1 bg-gray-200 rounded">**</code> for bold and <code class="px-1 bg-gray-200 rounded">_Italic_</code> <em>for italic.</em></p></li><li class="my-1"><p>An inline toolbar is also available when you select text.</p></li><li class="my-1"><p>To refresh the app press <code class="px-1 bg-gray-200 rounded">F5</code>.</p></li></ul><h1 class="mt-8">Roadmap</h1><ul class="px-2 mx-2 my-2"><li class="my-1"><p>Integration with notion.</p></li></ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import { | ||
checkUpdate, | ||
installUpdate, | ||
onUpdaterEvent, | ||
} from "@tauri-apps/api/updater"; | ||
import { relaunch } from "@tauri-apps/api/process"; | ||
|
||
const unlisten = await onUpdaterEvent(({ error, status }) => { | ||
// This will log all updater events, including status updates and errors. | ||
console.log("Updater event", error, status); | ||
}); | ||
|
||
try { | ||
const { shouldUpdate, manifest } = await checkUpdate(); | ||
console.log({ | ||
shouldUpdate, | ||
manifest | ||
}); | ||
if (shouldUpdate) { | ||
const ask = window.confirm("A new update is available"); | ||
// You could show a dialog asking the user if they want to install the update here. | ||
console.log( | ||
`Installing update ${manifest?.version}, ${manifest?.date}, ${manifest?.body}` | ||
); | ||
|
||
// Install the update. This will also restart the app on Windows! | ||
// await installUpdate(); | ||
|
||
// // On macOS and Linux you will need to restart the app manually. | ||
// // You could use this step to display another confirmation dialog. | ||
// await relaunch(); | ||
} | ||
} catch (error) { | ||
console.error(error); | ||
} | ||
|
||
// you need to call unlisten if your handler goes out of scope, for example if the component is unmounted. | ||
unlisten(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.