Skip to content

Commit

Permalink
feat: release v0.4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
HoaX7 committed Sep 26, 2024
2 parents 58f9277 + 39ade4d commit 987e851
Show file tree
Hide file tree
Showing 75 changed files with 2,124 additions and 351 deletions.
44 changes: 29 additions & 15 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,22 @@ on:

jobs:
release:
permissions:
contents: write
strategy:
fail-fast: false
matrix:
platform: [macos-latest, ubuntu-latest, windows-latest]
platform: [macos-latest, windows-latest]
# platform: [macos-latest, ubuntu-latest, windows-latest]
include:
- os: ubuntu-latest
rust_target: x86_64-unknown-linux-gnu
# - os: ubuntu-latest
# rust_target: x86_64-unknown-linux-gnu
- os: macos-latest
rust_target: x86_64-apple-darwin
args: --target x86_64-apple-darwin
- os: macos-latest
rust_target: aarch64-apple-darwin
args: --target aarch64-apple-darwin
- os: windows-latest
rust_target: x86_64-pc-windows-msvc
runs-on: ${{ matrix.platform }}
Expand All @@ -28,23 +33,18 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

# for projects that use labels and PRs,
# try https://github.com/mikepenz/release-changelog-builder-action instead
# TODO: use API to collect commit messages
- name: Build Changelog
id: build_changelog
run: echo "changelog=- ADD CHANGELOG" >> $GITHUB_OUTPUT

- name: Node.js setup
uses: actions/setup-node@v4
# NOTE: enterprise developers may hard code a version
with:
node-version: 18.20.4
# node-version-file: '.nvmrc'

- name: Install Rust (Stable)
run:
curl https://sh.rustup.rs -sSf | sh -s -- -y
- name: install Rust stable
uses: dtolnay/rust-toolchain@stable
with:
# Those targets are only used on macos runners so it's in an `if` to slightly speed up windows and linux builds.
targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}

- name: Install dependencies (ubuntu only)
if: matrix.platform == 'ubuntu-latest'
Expand All @@ -56,6 +56,20 @@ jobs:
# NOTE: include yarn build if frontend has build script
run: npm install ci

- name: Setup certificate
if: matrix.platform == 'macos-latest'
run: |
echo "${{ secrets.MACOS_CERTIFICATE }}" | base64 --decode > certificate.p12
security create-keychain -p "" build.keychain
security default-keychain -s build.keychain
security unlock-keychain -p "" build.keychain
security import certificate.p12 -k build.keychain -P "${{ secrets.MACOS_CERTIFICATE_PASSWORD }}" -T /usr/bin/codesign -A
security find-identity
security set-key-partition-list -S 'apple-tool:,apple:,codesign:' -s -k "" build.keychain
env:
MACOS_CERTIFICATE: ${{ secrets.MACOS_CERTIFICATE }}
MACOS_CERTIFICATE_PASSWORD: ${{ secrets.MACOS_CERTIFICATE_PASSWORD }}

- name: Build the app
uses: tauri-apps/tauri-action@v0
env:
Expand All @@ -67,7 +81,7 @@ jobs:
tagName: app-v__VERSION__
releaseName: Scribe v__VERSION__
releaseBody: |
${{steps.build_changelog.outputs.changelog}}
See the assets to download this version and install.
releaseDraft: true
prerelease: false
prerelease: false
updaterJsonPreferNsis: true
3 changes: 2 additions & 1 deletion app/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ Thumbs.db
vite.config.js.timestamp-*
vite.config.ts.timestamp-*

settings.toml
settings.toml
docs/
1 change: 1 addition & 0 deletions app/docs/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +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+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>&nbsp;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>&nbsp;folder.</p><p>You can modify the save path by clicking on <code class="px-1 bg-gray-200 rounded">File &gt; 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">&gt;</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,&nbsp;<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">-&gt;</code>, <code class="px-1 bg-gray-200 rounded">&gt;&gt;</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>,&nbsp;<code class="px-1 bg-gray-200 rounded">**</code>&nbsp;for bold and&nbsp;<code class="px-1 bg-gray-200 rounded">_Italic_</code>&nbsp;<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>
Loading

0 comments on commit 987e851

Please sign in to comment.