Skip to content

Commit

Permalink
Prepare everything for v1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierstoval committed Aug 29, 2024
1 parent 7cf857b commit a3d2c3f
Show file tree
Hide file tree
Showing 6 changed files with 76 additions and 40 deletions.
51 changes: 41 additions & 10 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,24 @@ name: Build Compotes app.

on:
push:
branches: [ rewrite ]
branches: [ main ]
tags: [ 'v[0-9]+.*' ]
pull_request:
branches: [ rewrite ]
branches: [ main ]

jobs:
create-release:
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/v')
steps:
- uses: actions/checkout@v4
- uses: taiki-e/create-gh-release-action@v1
with:
# (optional) Path to changelog.
changelog: CHANGELOG.md
# (required) GitHub token for creating GitHub Releases.
token: ${{ secrets.GITHUB_TOKEN }}

build:
strategy:
fail-fast: false
Expand All @@ -17,8 +30,7 @@ jobs:

runs-on: ${{ matrix.os }}
steps:
- { name: "Checkout the code", uses: actions/checkout@v2 }

- uses: actions/checkout@v4
- name: 🗄️ Setup Rust cache
uses: actions/cache@v2
with:
Expand Down Expand Up @@ -77,10 +89,29 @@ jobs:
run: |
yarn test
- name: 🚀 Upload release artifacts
uses: actions/upload-artifact@v2
upload-assets:
needs:
- create-release
- build
if: startsWith(github.ref, 'refs/tags/v')
strategy:
matrix:
include:
- target: x86_64-unknown-linux-gnu
os: ubuntu-latest
- target: x86_64-apple-darwin
os: macos-latest
- target: x86_64-pc-windows-msvc
os: windows-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: taiki-e/upload-rust-binary-action@v1
with:
name: release-${{ matrix.os }}
path: |
src-tauri/target/release/compotes*
src-tauri/target/release/bundle/*
bin: src/target/release/compotes
target: ${{ matrix.target }}
tar: unix
zip: windows
token: ${{ secrets.GITHUB_TOKEN }}
include: LICENSE,README.md
archive: $bin-$tag-$target
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# v0.20.0
# v1.0

Complete rewrite of the old hosted PHP/Symfony app into a Desktop app built with Svelte, Typescript, Rust and Tauri.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@orbitale/compotes-app",
"version": "1.0.0",
"private": true,
"license": "LGPL-3.0-or-later",
"license": "AGPL-3",
"scripts": {
"app": "concurrently --names \"front,back\" --raw \"vite dev\" \"tauri dev\"",
"dev": "vite dev",
Expand Down
40 changes: 20 additions & 20 deletions src-tauri/Cargo.lock

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

19 changes: 12 additions & 7 deletions src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[package]
name = "app"
version = "0.1.0"
description = "A Tauri App"
authors = [ "you" ]
license = ""
repository = ""
default-run = "app"
name = "compotes"
version = "1.0.0"
description = "A desktop app to visualize bank account operations"
authors = [ "Alex \"Pierstoval\" Rock <pierstoval@gmail.com>" ]
license = "AGPL-3"
repository = "https://github.com/Orbitale/Compotes"
default-run = "compotes"
edition = "2018"

[build-dependencies]
Expand All @@ -28,3 +28,8 @@ tauri-codegen = { version = "1.4", features = [ ] }

[features]
custom-protocol = [ "tauri/custom-protocol" ]

[profile.release]
codegen-units = 1
lto = true
strip = "symbols"
2 changes: 1 addition & 1 deletion src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"package": {
"productName": "compotes",
"version": "0.1.0"
"version": "1.0.0"
},
"build": {
"distDir": "./target/frontend-build",
Expand Down

0 comments on commit a3d2c3f

Please sign in to comment.