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 Sep 1, 2024
1 parent 7cf857b commit a01ec07
Show file tree
Hide file tree
Showing 11 changed files with 94 additions and 296 deletions.
74 changes: 59 additions & 15 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ name: Build Compotes app.

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

jobs:
build:
Expand All @@ -17,8 +18,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 All @@ -32,11 +32,11 @@ jobs:
- name: 🍃 Install Node.js
uses: actions/setup-node@v2
with:
node-version: 16
cache: yarn
cache-dependency-path: |
yarn.lock
tests/webdriverio/yarn.lock
node-version: 18

- name: 🍃 Install Yarn
run: |
npm i -g npm yarn
- name: 🦀 Install Rust
uses: actions-rs/toolchain@v1
Expand Down Expand Up @@ -77,10 +77,54 @@ jobs:
run: |
yarn test
- name: 🚀 Upload release artifacts
uses: actions/upload-artifact@v2
- name: 🗃 Store artifacts (release only)
uses: actions/upload-artifact@v4
if: matrix.os == 'ubuntu-latest' && startsWith(github.ref, 'refs/tags/v')
with:
name: release-${{ matrix.os }}
path: |
src-tauri/target/release/compotes*
src-tauri/target/release/bundle/*
name: compotes_artifacts_${{ matrix.os }}
overwrite: true
path: |
src-tauri/target/release/compotes
src-tauri/target/release/bundle/deb/*.deb
- name: 🗃 Store Windows artifacts (release only)
uses: actions/upload-artifact@v4
if: matrix.os == 'windows-latest' && startsWith(github.ref, 'refs/tags/v')
with:
name: compotes_artifacts_${{ matrix.os }}
overwrite: true
path: |
src-tauri/target/release/compotes.exe
src-tauri/target/release/bundle/msi/*.msi
release:
runs-on: ubuntu-latest
needs:
- build
if: startsWith(github.ref, 'refs/tags/v')
steps:
- uses: actions/checkout@v4

- name: 🗃 Download built artifacts
uses: actions/download-artifact@v4

- name: Create release
uses: actions/create-release@v1
id: create_release
with:
draft: false
prerelease: false
release_name: ${{ steps.version.outputs.version }}
tag_name: ${{ github.ref }}
#body_path: CHANGELOG.md
env:
GITHUB_TOKEN: ${{ github.token }}

- name: Upload all artifacts
uses: softprops/action-gh-release@v2
with:
files: |
src-tauri/target/release/compotes.exe
src-tauri/target/release/bundle/msi/*.msi
src-tauri/target/release/compotes
src-tauri/target/release/bundle/deb/*.deb
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
165 changes: 0 additions & 165 deletions src/lib/admin/LICENSE

This file was deleted.

Loading

0 comments on commit a01ec07

Please sign in to comment.