From a54d09826163a22379b912003510030bb45a035d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 22 Feb 2025 07:06:17 +0000 Subject: [PATCH 01/35] Bump serde_json from 1.0.138 to 1.0.139 in /src-tauri Bumps [serde_json](https://github.com/serde-rs/json) from 1.0.138 to 1.0.139. - [Release notes](https://github.com/serde-rs/json/releases) - [Commits](https://github.com/serde-rs/json/compare/v1.0.138...v1.0.139) --- updated-dependencies: - dependency-name: serde_json dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- src-tauri/Cargo.lock | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock index 54af4c9..2addb61 100644 --- a/src-tauri/Cargo.lock +++ b/src-tauri/Cargo.lock @@ -3736,9 +3736,9 @@ dependencies = [ [[package]] name = "serde_json" -version = "1.0.138" +version = "1.0.139" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d434192e7da787e94a6ea7e9670b26a036d0ca41e0b7efb2676dd32bae872949" +checksum = "44f86c3acccc9c65b153fe1b85a3be07fe5515274ec9f0653b4a0875731c72a6" dependencies = [ "itoa 1.0.14", "memchr", From 3672f7a159a3e982ba97b4e4e6e2f227ab6f5697 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 22 Feb 2025 07:06:31 +0000 Subject: [PATCH 02/35] Bump @types/node from 22.13.4 to 22.13.5 Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 22.13.4 to 22.13.5. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) --- updated-dependencies: - dependency-name: "@types/node" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- package-lock.json | 9 +++++---- package.json | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index 63cc53f..99373c3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -22,7 +22,7 @@ }, "devDependencies": { "@tauri-apps/cli": "^2.2.7", - "@types/node": "^22.13.4", + "@types/node": "^22.13.5", "@types/react": "^19.0.9", "@types/react-dom": "^19.0.3", "eslint": "^9.20.1", @@ -1055,10 +1055,11 @@ "dev": true }, "node_modules/@types/node": { - "version": "22.13.4", - "resolved": "https://registry.npmjs.org/@types/node/-/node-22.13.4.tgz", - "integrity": "sha512-ywP2X0DYtX3y08eFVx5fNIw7/uIv8hYUKgXoK8oayJlLnKcRfEYCxWMVE1XagUdVtCJlZT1AU4LXEABW+L1Peg==", + "version": "22.13.5", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.13.5.tgz", + "integrity": "sha512-+lTU0PxZXn0Dr1NBtC7Y8cR21AJr87dLLU953CWA6pMxxv/UDc7jYAY90upcrie1nRcD6XNG5HOYEDtgW5TxAg==", "dev": true, + "license": "MIT", "dependencies": { "undici-types": "~6.20.0" } diff --git a/package.json b/package.json index 9ddbadf..3db6c50 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ }, "devDependencies": { "@tauri-apps/cli": "^2.2.7", - "@types/node": "^22.13.4", + "@types/node": "^22.13.5", "@types/react": "^19.0.9", "@types/react-dom": "^19.0.3", "eslint": "^9.20.1", From 61ebbc227ae7fd082ad2fe8622540d0f9f6d46c4 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 22 Feb 2025 07:06:37 +0000 Subject: [PATCH 03/35] Bump @types/react-dom from 19.0.3 to 19.0.4 Bumps [@types/react-dom](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-dom) from 19.0.3 to 19.0.4. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-dom) --- updated-dependencies: - dependency-name: "@types/react-dom" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- package-lock.json | 9 +++++---- package.json | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index 63cc53f..75ee789 100644 --- a/package-lock.json +++ b/package-lock.json @@ -24,7 +24,7 @@ "@tauri-apps/cli": "^2.2.7", "@types/node": "^22.13.4", "@types/react": "^19.0.9", - "@types/react-dom": "^19.0.3", + "@types/react-dom": "^19.0.4", "eslint": "^9.20.1", "eslint-config-next": "^15.1.7", "typescript": "^5.7.3" @@ -1073,10 +1073,11 @@ } }, "node_modules/@types/react-dom": { - "version": "19.0.3", - "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-19.0.3.tgz", - "integrity": "sha512-0Knk+HJiMP/qOZgMyNFamlIjw9OFCsyC2ZbigmEEyXXixgre6IQpm/4V+r3qH4GC1JPvRJKInw+on2rV6YZLeA==", + "version": "19.0.4", + "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-19.0.4.tgz", + "integrity": "sha512-4fSQ8vWFkg+TGhePfUzVmat3eC14TXYSsiiDSLI0dVLsrm9gZFABjPy/Qu6TKgl1tq1Bu1yDsuQgY3A3DOjCcg==", "dev": true, + "license": "MIT", "peerDependencies": { "@types/react": "^19.0.0" } diff --git a/package.json b/package.json index 9ddbadf..547eb89 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "@tauri-apps/cli": "^2.2.7", "@types/node": "^22.13.4", "@types/react": "^19.0.9", - "@types/react-dom": "^19.0.3", + "@types/react-dom": "^19.0.4", "eslint": "^9.20.1", "eslint-config-next": "^15.1.7", "typescript": "^5.7.3" From 8b467f51d93bf9b52f9c194e85eb41fcb0b55a7e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 22 Feb 2025 07:06:44 +0000 Subject: [PATCH 04/35] Bump @types/react from 19.0.9 to 19.0.10 Bumps [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react) from 19.0.9 to 19.0.10. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react) --- updated-dependencies: - dependency-name: "@types/react" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- package-lock.json | 9 +++++---- package.json | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index 63cc53f..b603194 100644 --- a/package-lock.json +++ b/package-lock.json @@ -23,7 +23,7 @@ "devDependencies": { "@tauri-apps/cli": "^2.2.7", "@types/node": "^22.13.4", - "@types/react": "^19.0.9", + "@types/react": "^19.0.10", "@types/react-dom": "^19.0.3", "eslint": "^9.20.1", "eslint-config-next": "^15.1.7", @@ -1064,10 +1064,11 @@ } }, "node_modules/@types/react": { - "version": "19.0.9", - "resolved": "https://registry.npmjs.org/@types/react/-/react-19.0.9.tgz", - "integrity": "sha512-FedNTYgmMwSZmD1Sru/W1gJKuiYCN/3SuBkmZkcxX+FpO5zL76B22A9YNfAKg4HQO3Neh/30AiynP6BELdU0qQ==", + "version": "19.0.10", + "resolved": "https://registry.npmjs.org/@types/react/-/react-19.0.10.tgz", + "integrity": "sha512-JuRQ9KXLEjaUNjTWpzuR231Z2WpIwczOkBEIvbHNCzQefFIT0L8IqE6NV6ULLyC1SI/i234JnDoMkfg+RjQj2g==", "dev": true, + "license": "MIT", "dependencies": { "csstype": "^3.0.2" } diff --git a/package.json b/package.json index 9ddbadf..4c62b5b 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,7 @@ "devDependencies": { "@tauri-apps/cli": "^2.2.7", "@types/node": "^22.13.4", - "@types/react": "^19.0.9", + "@types/react": "^19.0.10", "@types/react-dom": "^19.0.3", "eslint": "^9.20.1", "eslint-config-next": "^15.1.7", From 08c11a299331c8bab8b7f3fcc3df7f91f1c3c990 Mon Sep 17 00:00:00 2001 From: Damien Date: Sat, 22 Feb 2025 02:22:46 -0500 Subject: [PATCH 05/35] Update README.md --- README.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index f35503c..683ced6 100644 --- a/README.md +++ b/README.md @@ -6,9 +6,9 @@

-[![Stars](https://img.shields.io/github/stars/leon3s/nextauri?style=social)](https://github.com/leon3s/nextauri) -[![Rust](https://img.shields.io/badge/built_with-Rust-dca282.svg)](https://github.com/leon3s/nextauri) -[![Typescript](https://img.shields.io/badge/built_with-Typescript-3178C6.svg)](https://github.com/leon3s/nextauri) +[![Stars](https://img.shields.io/github/stars/d4m13n-d3v/file_tree_rust?style=social)](https://github.com/d4m13n-d3v/file_tree_rust) +[![Rust](https://img.shields.io/badge/built_with-Rust-dca282.svg)](https://github.com/d4m13n-d3v/file_tree_rust) +[![Typescript](https://img.shields.io/badge/built_with-Typescript-3178C6.svg)](https://github.com/d4m13n-d3v/file_tree_rust) [![Discord](https://img.shields.io/discord/1011267493114949693?label=chat&logo=discord)](https://discord.gg/WV4Aac8uZg) @@ -16,8 +16,8 @@

-[![Eslint & Clippy](https://github.com/leon3s/nextauri/actions/workflows/eslint_clippy.yml/badge.svg)](https://github.com/leon3s/nextauri/actions/workflows/eslint_clippy.yml) -[![Build](https://github.com/leon3s/nextauri/actions/workflows/build.yml/badge.svg)](https://github.com/leon3s/nextauri/actions/workflows/build.yml) +[![Eslint & Clippy](https://github.com/d4m13n-d3v/file_tree_rust/actions/workflows/eslint_clippy.yml/badge.svg)](https://github.com/d4m13n-d3v/file_tree_rust/actions/workflows/eslint_clippy.yml) +[![Build](https://github.com/d4m13n-d3v/file_tree_rust/actions/workflows/build.yml/badge.svg)](https://github.com/d4m13n-d3v/file_tree_rust/actions/workflows/build.yml)

@@ -79,7 +79,7 @@ Be sure you have [NodeJS](https://nodejs.org/en/) and [Rust](https://www.rust-la 2. Clone or fork this repository ```sh - git clone https://github.com/leon3s/nextauri + git clone https://github.com/d4m13n-d3v/file_tree_rust cd nextauri ``` 3. Install node dependencies @@ -116,7 +116,7 @@ You can modify the `port` by updating `src-tauri/tauri.conf.json`.
To test your application we recommand you to use [Cypress](https://www.cypress.io) using Tauri [mocking technique](https://tauri.app/v1/guides/testing/mocking). -If you want me to add `Cypress` as part of the template react to this [discussion](https://github.com/leon3s/nextauri/discussions/19). +If you want me to add `Cypress` as part of the template react to this [discussion](https://github.com/d4m13n-d3v/file_tree_rust/discussions/19). You may also want to take a look to pre-alpha [WebDriver Testing](https://tauri.app/v1/guides/testing/webdriver/introduction) from Tauri. From 973e61c517a343541fd8661893e2cdd62df5ca87 Mon Sep 17 00:00:00 2001 From: Damien Date: Sat, 22 Feb 2025 02:23:36 -0500 Subject: [PATCH 06/35] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 683ced6..320fad4 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ [![Stars](https://img.shields.io/github/stars/d4m13n-d3v/file_tree_rust?style=social)](https://github.com/d4m13n-d3v/file_tree_rust) [![Rust](https://img.shields.io/badge/built_with-Rust-dca282.svg)](https://github.com/d4m13n-d3v/file_tree_rust) [![Typescript](https://img.shields.io/badge/built_with-Typescript-3178C6.svg)](https://github.com/d4m13n-d3v/file_tree_rust) -[![Discord](https://img.shields.io/discord/1011267493114949693?label=chat&logo=discord)](https://discord.gg/WV4Aac8uZg) +[![Discord](https://img.shields.io/discord/1195961063183765575?label=chat&logo=discord)](https://discord.gg/8dHnaarghJ)

From e81952bfd1068fe0a55763e6e20bee94acfd35ed Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 22 Feb 2025 07:26:00 +0000 Subject: [PATCH 07/35] Bump serde from 1.0.217 to 1.0.218 in /src-tauri Bumps [serde](https://github.com/serde-rs/serde) from 1.0.217 to 1.0.218. - [Release notes](https://github.com/serde-rs/serde/releases) - [Commits](https://github.com/serde-rs/serde/compare/v1.0.217...v1.0.218) --- updated-dependencies: - dependency-name: serde dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- src-tauri/Cargo.lock | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock index 2addb61..34ccbf6 100644 --- a/src-tauri/Cargo.lock +++ b/src-tauri/Cargo.lock @@ -3694,9 +3694,9 @@ dependencies = [ [[package]] name = "serde" -version = "1.0.217" +version = "1.0.218" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "02fc4265df13d6fa1d00ecff087228cc0a2b5f3c0e87e258d8b94a156e984c70" +checksum = "e8dfc9d19bdbf6d17e22319da49161d5d0108e4188e8b680aef6299eed22df60" dependencies = [ "serde_derive", ] @@ -3714,9 +3714,9 @@ dependencies = [ [[package]] name = "serde_derive" -version = "1.0.217" +version = "1.0.218" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5a9bf7cf98d04a2b28aead066b7496853d4779c9cc183c440dbac457641e19a0" +checksum = "f09503e191f4e797cb8aac08e9a4a4695c5edf6a2e70e376d961ddd5c969f82b" dependencies = [ "proc-macro2", "quote", From 5ad98a6dce6d9657118a4d30af36ab0def7679e9 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 22 Feb 2025 07:34:51 +0000 Subject: [PATCH 08/35] Bump eslint from 9.20.1 to 9.21.0 Bumps [eslint](https://github.com/eslint/eslint) from 9.20.1 to 9.21.0. - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md) - [Commits](https://github.com/eslint/eslint/compare/v9.20.1...v9.21.0) --- updated-dependencies: - dependency-name: eslint dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- package-lock.json | 121 ++++++++++++++++++++++++++-------------------- package.json | 2 +- 2 files changed, 69 insertions(+), 54 deletions(-) diff --git a/package-lock.json b/package-lock.json index b603194..896da39 100644 --- a/package-lock.json +++ b/package-lock.json @@ -25,7 +25,7 @@ "@types/node": "^22.13.4", "@types/react": "^19.0.10", "@types/react-dom": "^19.0.3", - "eslint": "^9.20.1", + "eslint": "^9.21.0", "eslint-config-next": "^15.1.7", "typescript": "^5.7.3" } @@ -64,12 +64,13 @@ } }, "node_modules/@eslint/config-array": { - "version": "0.19.1", - "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.19.1.tgz", - "integrity": "sha512-fo6Mtm5mWyKjA/Chy1BYTdn5mGJoDNjC7C64ug20ADsRDGrA85bN3uK3MaKbeRkRuuIEAR5N33Jr1pbm411/PA==", + "version": "0.19.2", + "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.19.2.tgz", + "integrity": "sha512-GNKqxfHG2ySmJOBSHg7LxeUx4xpuCoFjacmlCoYWEbaPXLwvfIjixRI12xCQZeULksQb23uiA8F40w5TojpV7w==", "dev": true, + "license": "Apache-2.0", "dependencies": { - "@eslint/object-schema": "^2.1.5", + "@eslint/object-schema": "^2.1.6", "debug": "^4.3.1", "minimatch": "^3.1.2" }, @@ -78,10 +79,11 @@ } }, "node_modules/@eslint/core": { - "version": "0.11.0", - "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.11.0.tgz", - "integrity": "sha512-DWUB2pksgNEb6Bz2fggIy1wh6fGgZP4Xyy/Mt0QZPiloKKXerbqq9D3SBQTlCRYOrcRPu4vuz+CGjwdfqxnoWA==", + "version": "0.12.0", + "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.12.0.tgz", + "integrity": "sha512-cmrR6pytBuSMTaBweKoGMwu3EiHiEC+DoyupPmlZ0HxBJBtIxwe+j/E4XPIKNx+Q74c8lXKPwYawBf5glsTkHg==", "dev": true, + "license": "Apache-2.0", "dependencies": { "@types/json-schema": "^7.0.15" }, @@ -90,10 +92,11 @@ } }, "node_modules/@eslint/eslintrc": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.2.0.tgz", - "integrity": "sha512-grOjVNN8P3hjJn/eIETF1wwd12DdnwFDoyceUJLYYdkpbwq3nLi+4fqrTAONx7XDALqlL220wC/RHSC/QTI/0w==", + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.3.0.tgz", + "integrity": "sha512-yaVPAiNAalnCZedKLdR21GOGILMLKPyqSLWaAjQFvYA2i/ciDi8ArYVr69Anohb6cH2Ukhqti4aFnYyPm8wdwQ==", "dev": true, + "license": "MIT", "dependencies": { "ajv": "^6.12.4", "debug": "^4.3.2", @@ -113,48 +116,39 @@ } }, "node_modules/@eslint/js": { - "version": "9.20.0", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.20.0.tgz", - "integrity": "sha512-iZA07H9io9Wn836aVTytRaNqh00Sad+EamwOVJT12GTLw1VGMFV/4JaME+JjLtr9fiGaoWgYnS54wrfWsSs4oQ==", + "version": "9.21.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.21.0.tgz", + "integrity": "sha512-BqStZ3HX8Yz6LvsF5ByXYrtigrV5AXADWLAGc7PH/1SxOb7/FIYYMszZZWiUou/GB9P2lXWk2SV4d+Z8h0nknw==", "dev": true, + "license": "MIT", "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" } }, "node_modules/@eslint/object-schema": { - "version": "2.1.5", - "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-2.1.5.tgz", - "integrity": "sha512-o0bhxnL89h5Bae5T318nFoFzGy+YE5i/gGkoPAgkmTVdRKTiv3p8JHevPiPaMwoloKfEiiaHlawCqaZMqRm+XQ==", + "version": "2.1.6", + "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-2.1.6.tgz", + "integrity": "sha512-RBMg5FRL0I0gs51M/guSAj5/e14VQ4tpZnQNWwuDT66P14I43ItmPfIZRhO9fUVIPOAQXU47atlywZ/czoqFPA==", "dev": true, + "license": "Apache-2.0", "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" } }, "node_modules/@eslint/plugin-kit": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.2.5.tgz", - "integrity": "sha512-lB05FkqEdUg2AA0xEbUz0SnkXT1LcCTa438W4IWTUh4hdOnVbQyOJ81OrDXsJk/LSiJHubgGEFoR5EHq1NsH1A==", + "version": "0.2.7", + "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.2.7.tgz", + "integrity": "sha512-JubJ5B2pJ4k4yGxaNLdbjrnk9d/iDz6/q8wOilpIowd6PJPgaxCuHBnBszq7Ce2TyMrywm5r4PnKm6V3iiZF+g==", "dev": true, + "license": "Apache-2.0", "dependencies": { - "@eslint/core": "^0.10.0", + "@eslint/core": "^0.12.0", "levn": "^0.4.1" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" } }, - "node_modules/@eslint/plugin-kit/node_modules/@eslint/core": { - "version": "0.10.0", - "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.10.0.tgz", - "integrity": "sha512-gFHJ+xBOo4G3WRlR1e/3G8A6/KZAH6zcE/hkLRCZTi/B9avAG365QhFA8uOGzTMqgTghpn7/fSnscW++dpMSAw==", - "dev": true, - "dependencies": { - "@types/json-schema": "^7.0.15" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, "node_modules/@humanfs/core": { "version": "0.19.1", "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.1.tgz", @@ -1046,7 +1040,8 @@ "version": "7.0.15", "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/@types/json5": { "version": "0.0.29", @@ -1293,6 +1288,7 @@ "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.14.0.tgz", "integrity": "sha512-cl669nCJTZBsL97OF4kUQm5g5hC2uihk0NxY3WENAC0TYdILVkAyHymAntgxGkl7K+t0cXIrH5siy5S4XkFycA==", "dev": true, + "license": "MIT", "bin": { "acorn": "bin/acorn" }, @@ -1305,6 +1301,7 @@ "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", "dev": true, + "license": "MIT", "peerDependencies": { "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" } @@ -1314,6 +1311,7 @@ "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", "dev": true, + "license": "MIT", "dependencies": { "fast-deep-equal": "^3.1.1", "fast-json-stable-stringify": "^2.0.0", @@ -1344,7 +1342,8 @@ "version": "2.0.1", "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", - "dev": true + "dev": true, + "license": "Python-2.0" }, "node_modules/aria-query": { "version": "5.3.2", @@ -1607,6 +1606,7 @@ "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=6" } @@ -2031,21 +2031,22 @@ } }, "node_modules/eslint": { - "version": "9.20.1", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.20.1.tgz", - "integrity": "sha512-m1mM33o6dBUjxl2qb6wv6nGNwCAsns1eKtaQ4l/NPHeTvhiUPbtdfMyktxN4B3fgHIgsYh1VT3V9txblpQHq+g==", + "version": "9.21.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.21.0.tgz", + "integrity": "sha512-KjeihdFqTPhOMXTt7StsDxriV4n66ueuF/jfPNC3j/lduHwr/ijDwJMsF+wyMJethgiKi5wniIE243vi07d3pg==", "dev": true, + "license": "MIT", "dependencies": { "@eslint-community/eslint-utils": "^4.2.0", "@eslint-community/regexpp": "^4.12.1", - "@eslint/config-array": "^0.19.0", - "@eslint/core": "^0.11.0", - "@eslint/eslintrc": "^3.2.0", - "@eslint/js": "9.20.0", - "@eslint/plugin-kit": "^0.2.5", + "@eslint/config-array": "^0.19.2", + "@eslint/core": "^0.12.0", + "@eslint/eslintrc": "^3.3.0", + "@eslint/js": "9.21.0", + "@eslint/plugin-kit": "^0.2.7", "@humanfs/node": "^0.16.6", "@humanwhocodes/module-importer": "^1.0.1", - "@humanwhocodes/retry": "^0.4.1", + "@humanwhocodes/retry": "^0.4.2", "@types/estree": "^1.0.6", "@types/json-schema": "^7.0.15", "ajv": "^6.12.4", @@ -2391,10 +2392,11 @@ } }, "node_modules/eslint/node_modules/@humanwhocodes/retry": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.4.1.tgz", - "integrity": "sha512-c7hNEllBlenFTHBky65mhq8WD2kbN9Q6gk0bTk8lSBvc554jpXSkST1iePudpt7+A/AQvuHs9EMqjHDXMY1lrA==", + "version": "0.4.2", + "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.4.2.tgz", + "integrity": "sha512-xeO57FpIu4p1Ri3Jq/EXq4ClRm86dVF2z/+kvFnyqVYRavTZmaFaUBbWCOuuTh0o/g7DSsk6kc2vrS4Vl5oPOQ==", "dev": true, + "license": "Apache-2.0", "engines": { "node": ">=18.18" }, @@ -2420,6 +2422,7 @@ "resolved": "https://registry.npmjs.org/espree/-/espree-10.3.0.tgz", "integrity": "sha512-0QYC8b24HWY8zjRnDTL6RiHfDbAWn63qb4LMj1Z4b076A4une81+z03Kg7l7mn/48PUTqoLptSXez8oknU8Clg==", "dev": true, + "license": "BSD-2-Clause", "dependencies": { "acorn": "^8.14.0", "acorn-jsx": "^5.3.2", @@ -2437,6 +2440,7 @@ "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.0.tgz", "integrity": "sha512-UyLnSehNt62FFhSwjZlHmeokpRK59rcz29j+F1/aDgbkbRTk7wIc9XzdoasMUbRNKDM0qQt/+BJ4BrpFeABemw==", "dev": true, + "license": "Apache-2.0", "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, @@ -2490,7 +2494,8 @@ "version": "3.1.3", "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/fast-glob": { "version": "3.3.2", @@ -2524,7 +2529,8 @@ "version": "2.1.0", "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/fast-levenshtein": { "version": "2.0.6", @@ -2710,6 +2716,7 @@ "resolved": "https://registry.npmjs.org/globals/-/globals-14.0.0.tgz", "integrity": "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=18" }, @@ -2848,10 +2855,11 @@ } }, "node_modules/import-fresh": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", - "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz", + "integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==", "dev": true, + "license": "MIT", "dependencies": { "parent-module": "^1.0.0", "resolve-from": "^4.0.0" @@ -3271,6 +3279,7 @@ "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", "dev": true, + "license": "MIT", "dependencies": { "argparse": "^2.0.1" }, @@ -3288,7 +3297,8 @@ "version": "0.4.1", "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/json-stable-stringify-without-jsonify": { "version": "1.0.1", @@ -3681,6 +3691,7 @@ "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", "dev": true, + "license": "MIT", "dependencies": { "callsites": "^3.0.0" }, @@ -3790,6 +3801,7 @@ "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", "dev": true, + "license": "MIT", "engines": { "node": ">=6" } @@ -3900,6 +3912,7 @@ "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", "dev": true, + "license": "MIT", "engines": { "node": ">=4" } @@ -4246,6 +4259,7 @@ "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" }, @@ -4473,6 +4487,7 @@ "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", "dev": true, + "license": "BSD-2-Clause", "dependencies": { "punycode": "^2.1.0" } diff --git a/package.json b/package.json index 4c62b5b..6fe5114 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,7 @@ "@types/node": "^22.13.4", "@types/react": "^19.0.10", "@types/react-dom": "^19.0.3", - "eslint": "^9.20.1", + "eslint": "^9.21.0", "eslint-config-next": "^15.1.7", "typescript": "^5.7.3" } From 1df8068c5af723700edb2d19c4bc7aed61a8dd6c Mon Sep 17 00:00:00 2001 From: Damien Date: Sat, 22 Feb 2025 02:42:50 -0500 Subject: [PATCH 09/35] Update README.md --- README.md | 185 +----------------------------------------------------- 1 file changed, 1 insertion(+), 184 deletions(-) diff --git a/README.md b/README.md index 320fad4..6e2d0cc 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@

Nextauri

-

❀️ Next.js + Tauri = Nextauri ❀️

+

🌳 File Tree 🌳

@@ -24,186 +24,3 @@

- -## ❓ What is Nextauri ? - -Nextauri is your favorite template for create cross-platform application using `Tauri` with `Next.js`.
-It came with minimal best practice setup so you can add anything fit your need.
-You can it use to develop `Windows`, `Linux` and `Mac` desktop application.
-But Tauri plan to have a mobile compatibility in the futur ! - -## ✨ Key Features -Nextauri integrates community-endorsed best practices with powerful tooling out of the box: - -### Code Quality Assurance -- Community-recommended ESLint configuration for Next.js projects -- Rust best practices enforced through Clippy linter for Tauri - -### Automated CI/CD Pipeline -- GitHub Actions workflows that trigger when pushing and creating pull request: - - Next.js project linting with ESLint - - Tauri project analysis with Clippy - - Production builds for all platforms: - - β€’ Linux - - β€’ Windows - - β€’ macOS - -### Maintenance Automation -- Automated weekly dependency updates keeping your stack fresh - -## πŸ’ͺ Motivation - -Tauri is great to make secure cross platform application backed by `Rust` !
-It will load an `HTML` page inside a `Webview` and give the ability to do system call with `IPC`.
-If you are familliar with `electron` or `nextron` you can see it as a very good replacement with smaller bundle size, smaller memory usage and more secure. - -That make Next.js the perfect fit for bundle React application with Tauri since it comes with great Static-Site Generation `SSG` capability that will allow us to generates static files that will be included in the final binary. - -The `benefit` of using Next.js `SSG` mode is pre-rendered React code in static HTML/JavaScript.
This means your app will load faster.
-React doesn't have to render the `HTML` on the client-side but will hydrate it on the first load if needed. - -The `downside` is that we cannot use `getServerSideProps` or use any type of `data fetching` for rendering our page for a request.
-Instead we will use `getStaticProps` to generate our page at build time.
- -Note that if you still want the power of `Rust` for generate your page you may have a look at [Neon](https://neon-bindings.com).
-It will allow you to call `Rust` code from Node.js ! - -## πŸ“¦ Installation - -Be sure you have [NodeJS](https://nodejs.org/en/) and [Rust](https://www.rust-lang.org/) installed on your system - -1. See Tauri [prerequisites](https://tauri.app/v1/guides/getting-started/prerequisites/) to prepare your system to build `Tauri` - -2. Clone or fork this repository - ```sh - git clone https://github.com/d4m13n-d3v/file_tree_rust - cd nextauri - ``` -3. Install node dependencies - ```sh - npm install - ``` - -## 🎨 Developing - -To get started you only need one command - -```sh -npm run dev -``` - -This will start both Tauri and Next.js in development mode. - -> Note that tauri is waiting for an http server to be alive on localhost:3000.
-> It's the default Next.js `port` while running in development - -You can modify the `port` by updating `src-tauri/tauri.conf.json`.
- -```json -"beforeDevCommand": "npm run next dev -- -p 8080", -"devPath": "http://localhost:8080", -``` - -### Source structure - -- `src-next/` are where Next.js files are located. -- `src-tauri/` contain Tauri source files. - -## πŸ§ͺ Testing - -To test your application we recommand you to use [Cypress](https://www.cypress.io) using Tauri [mocking technique](https://tauri.app/v1/guides/testing/mocking). - -If you want me to add `Cypress` as part of the template react to this [discussion](https://github.com/d4m13n-d3v/file_tree_rust/discussions/19). - -You may also want to take a look to pre-alpha [WebDriver Testing](https://tauri.app/v1/guides/testing/webdriver/introduction) from Tauri. - -## ⚑Production - -To build in production you can do it in a single command. -This will build and export Next.js and build Tauri for your current environnement. - -```sh -npm run tauri build -``` - -Look into `src-tauri/tauri.conf.json` to tweak the settings, -and refer to [Tauri](https://tauri.app/v1/guides/building) building documentation for more information. - - -## ⚠️ Warning - -If you are new to Next.js beware when working with it in development !
-It will start a `Nodejs` server in background in order to have `HMR` (Hot Module Replacement) capability but also `SSR` (Server Side Rendering). -That mean your React/Typescript code have two execution context : - -1. On the `Server` - - Code is executed by Node.js runtime. - - There is no notion of `window` or `navigator` it's part of `Browser API` - - You cannot call `Tauri API` in this context since Tauri injection happen in the `Browser` side - -2. On the `Browser` - - Code is executed by the Tauri `Webview` - - `Tauri API` will work fine and any other `Browser API` package `d3.js` for example - -Note that your production code will alway be running in a `Browser` side context.
-Since we use the `SSG` feature from Next.js no Node.js server will be packaged in production. - -``` -referenceError: navigator is not defined -``` - -This error can orcur when importing `@tauri-apps/api` for example.
-There is 2 workarounds that you can use : - -1. Dynamic component method - - - Create your component - ```tsx - import React from 'react' - - import { window } from '@tauri-apps/api'; - - const { appWindow } = window; - - export default function MyComponent() { -
- {appWindow.label} -
- } - ``` - - - Import your component - ```tsx - import dynamic from "next/dynamic"; - - const MyComponent = dynamic(() => import("./path/to/my/component"), { - ssr: false, - }); - - ``` - -1. Is browser method - - ```js - import { invoke } from '@tauri-apps/api/tauri' - - const isBrowser = typeof window !== 'undefined' - - if (isBrowser) { - /// Code will only execute on browser side - } - ``` - -In general to safely invoke `Tauri API` you should use it in `componentDidMount`, `useEffect` or on user based `events` that will be alway executed in client side. - -## πŸ“š Documentation - -To learn more about Tauri and Next.js, take a look at the following resources: - -- [Tauri Guides](https://tauri.app/v1/guides/) - guide about Tauri. -- [Tauri API](https://tauri.app/v1/api/js) - discover javascript Tauri api. -- [Next.js Documentation](https://nextjs.org/docs) - learn more about Next.js. -- [Next.js Tutorial](https://nextjs.org/learn) - interactive Next.js tutorial. From 473d68346d62a5a136dd765a3c318d4884b70ed1 Mon Sep 17 00:00:00 2001 From: Damien Date: Sat, 22 Feb 2025 02:43:28 -0500 Subject: [PATCH 10/35] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6e2d0cc..571af38 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@
-

Nextauri

-

🌳 File Tree 🌳

+

File Tree

+

🌳 A tool for determining what is using your storage space, and creating solutions to slim it down. 🌳

From 35318293759e4e1626ac4c7954ff3c978b8116b8 Mon Sep 17 00:00:00 2001 From: Damien Date: Sat, 22 Feb 2025 02:51:52 -0500 Subject: [PATCH 11/35] Update README.md --- README.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/README.md b/README.md index 571af38..8633aa1 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,4 @@

- -

From 32b7836a6afa99c952d0316cb5e1218fbb22d4b5 Mon Sep 17 00:00:00 2001 From: Damien Date: Sat, 22 Feb 2025 02:52:24 -0500 Subject: [PATCH 12/35] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8633aa1..abcd612 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@

File Tree

-

🌳 A tool for determining what is using your storage space, and creating solutions to slim it down. 🌳

+

🌳 A tool for determining what is using your storage space, and recommending solutions to slim it down. 🌳

From 86e85e70f0b3cf113c1212e9fe5d8d4b74646e19 Mon Sep 17 00:00:00 2001 From: Damien Date: Sat, 22 Feb 2025 02:54:14 -0500 Subject: [PATCH 13/35] Create LICENSE.MD --- LICENSE.MD | 674 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 674 insertions(+) create mode 100644 LICENSE.MD diff --git a/LICENSE.MD b/LICENSE.MD new file mode 100644 index 0000000..f288702 --- /dev/null +++ b/LICENSE.MD @@ -0,0 +1,674 @@ + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU General Public License is a free, copyleft license for +software and other kinds of works. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights. + + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. + + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Use with the GNU Affero General Public License. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU Affero General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the special requirements of the GNU Affero General Public License, +section 13, concerning interaction through a network will apply to the +combination as such. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If the program does terminal interaction, make it output a short +notice like this when it starts in an interactive mode: + + Copyright (C) + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, your program's commands +might be different; for a GUI interface, you would use an "about box". + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU GPL, see +. + + The GNU General Public License does not permit incorporating your program +into proprietary programs. If your program is a subroutine library, you +may consider it more useful to permit linking proprietary applications with +the library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. But first, please read +. From 072cb029c3fa014ad691a9c1602fe9c8e087795a Mon Sep 17 00:00:00 2001 From: Damien Date: Sat, 22 Feb 2025 02:58:40 -0500 Subject: [PATCH 14/35] Create release.yaml --- .github/workflows/release.yaml | 90 ++++++++++++++++++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100644 .github/workflows/release.yaml diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..d59896f --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,90 @@ +name: Release + +on: + workflow_dispatch: + inputs: + version: + description: 'Version number' + required: true + +jobs: + build: + strategy: + fail-fast: true + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + + runs-on: ${{ matrix.os }} + + steps: + - name: Checkout repository code + uses: actions/checkout@v3 + + # Cache Rust + - uses: actions/cache@v3 + with: + path: ./src-tauri/target + key: ${{matrix.os}}-${{ hashFiles('./src-tauri/Cargo.lock') }} + + # Cache Rust + - uses: actions/cache@v3 + with: + path: ~/.cargo + key: ${{matrix.os}}-${{ hashFiles('./src-tauri/Cargo.lock') }} + + # Cache Node + - uses: actions/cache@v3 + with: + path: ./node_modules + key: ${{matrix.os}}-${{ hashFiles('./package-lock.json') }} + + # Cache Next.js + - uses: actions/cache@v3 + with: + path: ./src-next/.next + key: ${{matrix.os}} + + - name: Install Node.js v20 LTS + uses: actions/setup-node@v3 + with: + node-version: 22 + + - name: Install Rust with Clippy + uses: dtolnay/rust-toolchain@stable + with: + components: rustfmt, clippy + + - name: Install Tauri dependencies + if: matrix.os == 'ubuntu-latest' + run: | + sudo apt-get update + sudo apt install --reinstall ca-certificates + sudo update-ca-certificates -f + sudo apt-get install javascriptcoregtk-4.1 libsoup-3.0 webkit2gtk-4.1 libayatana-appindicator3-dev librsvg2-dev -y + + - name: Install node dependencies + run: npm install + + - name: Build application + run: npm run tauri build + + - name: Create Release + id: create_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ github.event.inputs.version }} + release_name: Release ${{ github.event.inputs.version }} + draft: false + prerelease: false + + - name: Upload Release Assets + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: src-tauri/target/release/bundle/** + asset_name: my_app_${{ github.event.inputs.version }} + asset_content_type: application/zip From 97fd10b844cd956689cb2db048b749a61325a8f1 Mon Sep 17 00:00:00 2001 From: Damien Date: Sat, 22 Feb 2025 03:06:32 -0500 Subject: [PATCH 15/35] Update release.yaml --- .github/workflows/release.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index d59896f..3254314 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -82,7 +82,7 @@ jobs: - name: Upload Release Assets uses: actions/upload-release-asset@v1 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: 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 with: upload_url: ${{ steps.create_release.outputs.upload_url }} asset_path: src-tauri/target/release/bundle/** From 2c689615717b63a9cf5b4b0a708542f8f53749db Mon Sep 17 00:00:00 2001 From: Damien Date: Sat, 22 Feb 2025 03:11:11 -0500 Subject: [PATCH 16/35] Update release.yaml --- .github/workflows/release.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 3254314..f78b28f 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -72,7 +72,7 @@ jobs: id: create_release uses: actions/create-release@v1 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: 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 with: tag_name: ${{ github.event.inputs.version }} release_name: Release ${{ github.event.inputs.version }} From 726eed55bfa3e7fbe960a5cbbeca3cae6b427eb9 Mon Sep 17 00:00:00 2001 From: Damien Date: Sat, 22 Feb 2025 03:18:34 -0500 Subject: [PATCH 17/35] Update release.yaml --- .github/workflows/release.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index f78b28f..9addd02 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -72,7 +72,7 @@ jobs: id: create_release uses: actions/create-release@v1 env: - GITHUB_TOKEN: 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 + GITHUB_TOKEN: ${{ secrets.DAMIEN_TOKEN }} with: tag_name: ${{ github.event.inputs.version }} release_name: Release ${{ github.event.inputs.version }} @@ -82,7 +82,7 @@ jobs: - name: Upload Release Assets uses: actions/upload-release-asset@v1 env: - GITHUB_TOKEN: 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 + GITHUB_TOKEN: ${{ secrets.DAMIEN_TOKEN }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} asset_path: src-tauri/target/release/bundle/** From b0941d880e50cc8ea3a46af1fdf1f55568d1468e Mon Sep 17 00:00:00 2001 From: Damien Date: Sat, 22 Feb 2025 03:24:42 -0500 Subject: [PATCH 18/35] Update release.yaml --- .github/workflows/release.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 9addd02..c3777c8 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -85,6 +85,6 @@ jobs: GITHUB_TOKEN: ${{ secrets.DAMIEN_TOKEN }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: src-tauri/target/release/bundle/** + asset_path: ./src-tauri/target/release/bundle/** asset_name: my_app_${{ github.event.inputs.version }} asset_content_type: application/zip From a5789dff530248d50c910d089616128bd3971a66 Mon Sep 17 00:00:00 2001 From: Damien Date: Sat, 22 Feb 2025 03:28:39 -0500 Subject: [PATCH 19/35] Update release.yaml --- .github/workflows/release.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index c3777c8..ebf0131 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -85,6 +85,6 @@ jobs: GITHUB_TOKEN: ${{ secrets.DAMIEN_TOKEN }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./src-tauri/target/release/bundle/** + asset_path: ./src-tauri/target/release/bundle/ asset_name: my_app_${{ github.event.inputs.version }} asset_content_type: application/zip From 3e33559ae98519508c6dfdd154098acf63da52d1 Mon Sep 17 00:00:00 2001 From: Damien Date: Sat, 22 Feb 2025 03:33:43 -0500 Subject: [PATCH 20/35] Update release.yaml --- .github/workflows/release.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index ebf0131..2fe2b8f 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -85,6 +85,6 @@ jobs: GITHUB_TOKEN: ${{ secrets.DAMIEN_TOKEN }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./src-tauri/target/release/bundle/ + asset_path: ./src-tauri/target/release/bundle/* asset_name: my_app_${{ github.event.inputs.version }} asset_content_type: application/zip From 5e33408f72cf2f3d4ce7f4ec5788f759f669a3d2 Mon Sep 17 00:00:00 2001 From: Damien Date: Sat, 22 Feb 2025 03:43:21 -0500 Subject: [PATCH 21/35] Update release.yaml --- .github/workflows/release.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 2fe2b8f..e6e3969 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -78,13 +78,17 @@ jobs: release_name: Release ${{ github.event.inputs.version }} draft: false prerelease: false - + + - name: Zip release bundle + run: | + zip -r release.zip ./src-tauri/target/release/bundle/ + - name: Upload Release Assets uses: actions/upload-release-asset@v1 env: GITHUB_TOKEN: ${{ secrets.DAMIEN_TOKEN }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./src-tauri/target/release/bundle/* + asset_path: ./release.zip asset_name: my_app_${{ github.event.inputs.version }} asset_content_type: application/zip From 814113327b8d0b7fa4e836c7701209413e31e57a Mon Sep 17 00:00:00 2001 From: Damien Date: Sat, 22 Feb 2025 03:46:59 -0500 Subject: [PATCH 22/35] Update release.yaml --- .github/workflows/release.yaml | 48 ++++++++++++++++++++++------------ 1 file changed, 31 insertions(+), 17 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index e6e3969..5ac5a58 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -8,7 +8,33 @@ on: required: true jobs: + create_release: + runs-on: ubuntu-latest + steps: + - name: Checkout repository code + uses: actions/checkout@v3 + + - name: Create Git Tag + run: | + git tag ${{ github.event.inputs.version }} + git push origin ${{ github.event.inputs.version }} + + - name: Create Release + id: create_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.DAMIEN_TOKEN }} + with: + tag_name: ${{ github.event.inputs.version }} + release_name: Release ${{ github.event.inputs.version }} + draft: false + prerelease: false + + outputs: + upload_url: ${{ steps.create_release.outputs.upload_url }} + build: + needs: create_release strategy: fail-fast: true matrix: @@ -26,7 +52,6 @@ jobs: path: ./src-tauri/target key: ${{matrix.os}}-${{ hashFiles('./src-tauri/Cargo.lock') }} - # Cache Rust - uses: actions/cache@v3 with: path: ~/.cargo @@ -68,27 +93,16 @@ jobs: - name: Build application run: npm run tauri build - - name: Create Release - id: create_release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.DAMIEN_TOKEN }} - with: - tag_name: ${{ github.event.inputs.version }} - release_name: Release ${{ github.event.inputs.version }} - draft: false - prerelease: false - - name: Zip release bundle run: | - zip -r release.zip ./src-tauri/target/release/bundle/ - + zip -r release_${{ matrix.os }}.zip ./src-tauri/target/release/bundle/ + - name: Upload Release Assets uses: actions/upload-release-asset@v1 env: GITHUB_TOKEN: ${{ secrets.DAMIEN_TOKEN }} with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./release.zip - asset_name: my_app_${{ github.event.inputs.version }} + upload_url: ${{ needs.create_release.outputs.upload_url }} + asset_path: ./release_${{ matrix.os }}.zip + asset_name: my_app_${{ github.event.inputs.version }}_${{ matrix.os }}.zip asset_content_type: application/zip From 988a19bda68dd54ca9d080df9569cd48cdcdfc7e Mon Sep 17 00:00:00 2001 From: Damien Date: Sat, 22 Feb 2025 03:47:55 -0500 Subject: [PATCH 23/35] Update release.yaml --- .github/workflows/release.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 5ac5a58..bfc38bb 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -104,5 +104,5 @@ jobs: with: upload_url: ${{ needs.create_release.outputs.upload_url }} asset_path: ./release_${{ matrix.os }}.zip - asset_name: my_app_${{ github.event.inputs.version }}_${{ matrix.os }}.zip + asset_name: file_tree_${{ github.event.inputs.version }}_${{ matrix.os }}.zip asset_content_type: application/zip From f127b30b40926437f4dae19a470d9c0605bf215c Mon Sep 17 00:00:00 2001 From: Damien Date: Sat, 22 Feb 2025 03:50:49 -0500 Subject: [PATCH 24/35] Update release.yaml --- .github/workflows/release.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index bfc38bb..09fd124 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -15,6 +15,8 @@ jobs: uses: actions/checkout@v3 - name: Create Git Tag + env: + GITHUB_TOKEN: ${{ secrets.DAMIEN_TOKEN }} run: | git tag ${{ github.event.inputs.version }} git push origin ${{ github.event.inputs.version }} From 8d08fa97d6f938d906bd16c340de417f2370033b Mon Sep 17 00:00:00 2001 From: Damien Date: Sat, 22 Feb 2025 03:52:14 -0500 Subject: [PATCH 25/35] Update release.yaml --- .github/workflows/release.yaml | 7 ------- 1 file changed, 7 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 09fd124..917463b 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -14,13 +14,6 @@ jobs: - name: Checkout repository code uses: actions/checkout@v3 - - name: Create Git Tag - env: - GITHUB_TOKEN: ${{ secrets.DAMIEN_TOKEN }} - run: | - git tag ${{ github.event.inputs.version }} - git push origin ${{ github.event.inputs.version }} - - name: Create Release id: create_release uses: actions/create-release@v1 From cde6737477de62b7bf6471fd9448c8c7f497e825 Mon Sep 17 00:00:00 2001 From: Damien Date: Sat, 22 Feb 2025 03:54:44 -0500 Subject: [PATCH 26/35] Update README.md --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index abcd612..14e1b67 100644 --- a/README.md +++ b/README.md @@ -6,9 +6,9 @@

-[![Stars](https://img.shields.io/github/stars/d4m13n-d3v/file_tree_rust?style=social)](https://github.com/d4m13n-d3v/file_tree_rust) -[![Rust](https://img.shields.io/badge/built_with-Rust-dca282.svg)](https://github.com/d4m13n-d3v/file_tree_rust) -[![Typescript](https://img.shields.io/badge/built_with-Typescript-3178C6.svg)](https://github.com/d4m13n-d3v/file_tree_rust) +[![Stars](https://img.shields.io/github/stars/d4m13n-d3v/file_tree?style=social)](https://github.com/d4m13n-d3v/file_tree) +[![Rust](https://img.shields.io/badge/built_with-Rust-dca282.svg)](https://github.com/d4m13n-d3v/file_tree) +[![Typescript](https://img.shields.io/badge/built_with-Typescript-3178C6.svg)](https://github.com/d4m13n-d3v/file_tree) [![Discord](https://img.shields.io/discord/1195961063183765575?label=chat&logo=discord)](https://discord.gg/8dHnaarghJ) @@ -16,8 +16,8 @@

-[![Eslint & Clippy](https://github.com/d4m13n-d3v/file_tree_rust/actions/workflows/eslint_clippy.yml/badge.svg)](https://github.com/d4m13n-d3v/file_tree_rust/actions/workflows/eslint_clippy.yml) -[![Build](https://github.com/d4m13n-d3v/file_tree_rust/actions/workflows/build.yml/badge.svg)](https://github.com/d4m13n-d3v/file_tree_rust/actions/workflows/build.yml) +[![Eslint & Clippy](https://github.com/d4m13n-d3v/file_tree_rust/actions/workflows/eslint_clippy.yml/badge.svg)](https://github.com/d4m13n-d3v/file_tree/actions/workflows/eslint_clippy.yml) +[![Build](https://github.com/d4m13n-d3v/file_tree_rust/actions/workflows/build.yml/badge.svg)](https://github.com/d4m13n-d3v/file_tree/actions/workflows/build.yml)

From df0d755e2509e08e5b7ebf8d2aa7929f6367edd2 Mon Sep 17 00:00:00 2001 From: Damien Date: Sat, 22 Feb 2025 04:02:49 -0500 Subject: [PATCH 27/35] Create clear_cache --- .github/workflows/clear_cache | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/clear_cache diff --git a/.github/workflows/clear_cache b/.github/workflows/clear_cache new file mode 100644 index 0000000..4972601 --- /dev/null +++ b/.github/workflows/clear_cache @@ -0,0 +1,30 @@ +name: Clear cache + +on: + workflow_dispatch: + +permissions: + actions: write + +jobs: + clear-cache: + runs-on: ubuntu-latest + steps: + - name: Clear cache + uses: actions/github-script@v6 + with: + script: | + console.log("About to clear") + const caches = await github.rest.actions.getActionsCacheList({ + owner: context.repo.owner, + repo: context.repo.repo, + }) + for (const cache of caches.data.actions_caches) { + console.log(cache) + github.rest.actions.deleteActionsCacheById({ + owner: context.repo.owner, + repo: context.repo.repo, + cache_id: cache.id, + }) + } + console.log("Clear completed") From 413ed2acfe94ee4b98f66959828eb2579df8fc11 Mon Sep 17 00:00:00 2001 From: Damien Date: Sat, 22 Feb 2025 04:03:05 -0500 Subject: [PATCH 28/35] Rename clear_cache to clear_cache.yaml --- .github/workflows/{clear_cache => clear_cache.yaml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{clear_cache => clear_cache.yaml} (100%) diff --git a/.github/workflows/clear_cache b/.github/workflows/clear_cache.yaml similarity index 100% rename from .github/workflows/clear_cache rename to .github/workflows/clear_cache.yaml From b83d6269e0e3b062447c4437930c76042eb74dc6 Mon Sep 17 00:00:00 2001 From: Damien Date: Sat, 22 Feb 2025 04:22:13 -0500 Subject: [PATCH 29/35] Update release.yaml --- .github/workflows/release.yaml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 917463b..a557b41 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -84,7 +84,14 @@ jobs: - name: Install node dependencies run: npm install - + + - name: Set crate version + # You may pin to the exact commit or the version. + # uses: thomaseizinger/set-crate-version@0941739e872e465c18af1148eccf85b249b82016 + uses: thomaseizinger/set-crate-version@1.0.0 + with: + version: ${{ github.event.inputs.version}} + - name: Build application run: npm run tauri build From fb7c06ccc2d4a924a8cf9367c4de91732a2402a7 Mon Sep 17 00:00:00 2001 From: Damien Date: Sat, 22 Feb 2025 04:30:28 -0500 Subject: [PATCH 30/35] Update release.yaml --- .github/workflows/release.yaml | 32 +++++++++++++++++++++++--------- 1 file changed, 23 insertions(+), 9 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index a557b41..925ed3e 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -2,10 +2,6 @@ name: Release on: workflow_dispatch: - inputs: - version: - description: 'Version number' - required: true jobs: create_release: @@ -14,6 +10,22 @@ jobs: - name: Checkout repository code uses: actions/checkout@v3 + - name: CargoVersionBump + # You may pin to the exact commit or the version. + # uses: bp3d-actions/cargo-version@c67ad4bfe18e7bd64ef90277fa4f86ae3fcaec3e + uses: bp3d-actions/cargo-version@0.0.2 + with: + # get to return current crate name and version, set to check and apply the new provided version if it is greater than the current one + mode: get + # name of the release branch + release-branch: master + # set to true if the repository has multiple Cargo crates, in which case multiple /version can be used, each with the directory name as second argument + multi: false + # the GitHub Actions token + token: ${{ secrets.DAMIEN_TOKEN }} + # working directory of Cargo.toml + cwd: ./src-tauri/ + - name: Create Release id: create_release uses: actions/create-release@v1 @@ -85,12 +97,14 @@ jobs: - name: Install node dependencies run: npm install - - name: Set crate version + + - name: Rust Crate Version # You may pin to the exact commit or the version. - # uses: thomaseizinger/set-crate-version@0941739e872e465c18af1148eccf85b249b82016 - uses: thomaseizinger/set-crate-version@1.0.0 + # uses: colt-1/crate-version@f0081b509cc5c928cf4e807219479a481f969341 + uses: colt-1/crate-version@2.0.0 with: - version: ${{ github.event.inputs.version}} + # The relative path of toml file + file: ./src-tauri/Cargo.toml - name: Build application run: npm run tauri build @@ -106,5 +120,5 @@ jobs: with: upload_url: ${{ needs.create_release.outputs.upload_url }} asset_path: ./release_${{ matrix.os }}.zip - asset_name: file_tree_${{ github.event.inputs.version }}_${{ matrix.os }}.zip + asset_name: file_tree_${{ steps.crate-version.outputs.version }}_${{ matrix.os }}.zip asset_content_type: application/zip From 3d6802907156f441200967139464155d680caa69 Mon Sep 17 00:00:00 2001 From: Damien Date: Sat, 22 Feb 2025 04:31:09 -0500 Subject: [PATCH 31/35] Update release.yaml --- .github/workflows/release.yaml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 925ed3e..88682e3 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -26,14 +26,22 @@ jobs: # working directory of Cargo.toml cwd: ./src-tauri/ + - name: Rust Crate Version + # You may pin to the exact commit or the version. + # uses: colt-1/crate-version@f0081b509cc5c928cf4e807219479a481f969341 + uses: colt-1/crate-version@2.0.0 + with: + # The relative path of toml file + file: ./src-tauri/Cargo.toml + - name: Create Release id: create_release uses: actions/create-release@v1 env: GITHUB_TOKEN: ${{ secrets.DAMIEN_TOKEN }} with: - tag_name: ${{ github.event.inputs.version }} - release_name: Release ${{ github.event.inputs.version }} + tag_name: ${{ steps.crate-version.outputs.version }} + release_name: Release ${{ steps.crate-version.outputs.version }} draft: false prerelease: false From 68fc47ce9218cda160634ab3fdde87f8fdf67274 Mon Sep 17 00:00:00 2001 From: Damien Date: Sat, 22 Feb 2025 04:33:20 -0500 Subject: [PATCH 32/35] Update release.yaml --- .github/workflows/release.yaml | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 88682e3..3ea41cb 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -26,10 +26,7 @@ jobs: # working directory of Cargo.toml cwd: ./src-tauri/ - - name: Rust Crate Version - # You may pin to the exact commit or the version. - # uses: colt-1/crate-version@f0081b509cc5c928cf4e807219479a481f969341 - uses: colt-1/crate-version@2.0.0 + - uses: colt-1/crate-version@2.0.0 with: # The relative path of toml file file: ./src-tauri/Cargo.toml @@ -106,10 +103,7 @@ jobs: run: npm install - - name: Rust Crate Version - # You may pin to the exact commit or the version. - # uses: colt-1/crate-version@f0081b509cc5c928cf4e807219479a481f969341 - uses: colt-1/crate-version@2.0.0 + - uses: colt-1/crate-version@2.0.0 with: # The relative path of toml file file: ./src-tauri/Cargo.toml From fd09893ae7e6d14706c1363ee2859980223e1bba Mon Sep 17 00:00:00 2001 From: Damien Date: Sat, 22 Feb 2025 04:35:05 -0500 Subject: [PATCH 33/35] Update release.yaml --- .github/workflows/release.yaml | 40 ++++++++++------------------------ 1 file changed, 12 insertions(+), 28 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 3ea41cb..a557b41 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -2,6 +2,10 @@ name: Release on: workflow_dispatch: + inputs: + version: + description: 'Version number' + required: true jobs: create_release: @@ -10,35 +14,14 @@ jobs: - name: Checkout repository code uses: actions/checkout@v3 - - name: CargoVersionBump - # You may pin to the exact commit or the version. - # uses: bp3d-actions/cargo-version@c67ad4bfe18e7bd64ef90277fa4f86ae3fcaec3e - uses: bp3d-actions/cargo-version@0.0.2 - with: - # get to return current crate name and version, set to check and apply the new provided version if it is greater than the current one - mode: get - # name of the release branch - release-branch: master - # set to true if the repository has multiple Cargo crates, in which case multiple /version can be used, each with the directory name as second argument - multi: false - # the GitHub Actions token - token: ${{ secrets.DAMIEN_TOKEN }} - # working directory of Cargo.toml - cwd: ./src-tauri/ - - - uses: colt-1/crate-version@2.0.0 - with: - # The relative path of toml file - file: ./src-tauri/Cargo.toml - - name: Create Release id: create_release uses: actions/create-release@v1 env: GITHUB_TOKEN: ${{ secrets.DAMIEN_TOKEN }} with: - tag_name: ${{ steps.crate-version.outputs.version }} - release_name: Release ${{ steps.crate-version.outputs.version }} + tag_name: ${{ github.event.inputs.version }} + release_name: Release ${{ github.event.inputs.version }} draft: false prerelease: false @@ -102,11 +85,12 @@ jobs: - name: Install node dependencies run: npm install - - - uses: colt-1/crate-version@2.0.0 + - name: Set crate version + # You may pin to the exact commit or the version. + # uses: thomaseizinger/set-crate-version@0941739e872e465c18af1148eccf85b249b82016 + uses: thomaseizinger/set-crate-version@1.0.0 with: - # The relative path of toml file - file: ./src-tauri/Cargo.toml + version: ${{ github.event.inputs.version}} - name: Build application run: npm run tauri build @@ -122,5 +106,5 @@ jobs: with: upload_url: ${{ needs.create_release.outputs.upload_url }} asset_path: ./release_${{ matrix.os }}.zip - asset_name: file_tree_${{ steps.crate-version.outputs.version }}_${{ matrix.os }}.zip + asset_name: file_tree_${{ github.event.inputs.version }}_${{ matrix.os }}.zip asset_content_type: application/zip From cd3da4b234d36f233ecd9af76628c2b8cc29827b Mon Sep 17 00:00:00 2001 From: Damien Date: Sat, 22 Feb 2025 04:49:04 -0500 Subject: [PATCH 34/35] Update release.yaml --- .github/workflows/release.yaml | 7 ------- 1 file changed, 7 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index a557b41..3313282 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -84,13 +84,6 @@ jobs: - name: Install node dependencies run: npm install - - - name: Set crate version - # You may pin to the exact commit or the version. - # uses: thomaseizinger/set-crate-version@0941739e872e465c18af1148eccf85b249b82016 - uses: thomaseizinger/set-crate-version@1.0.0 - with: - version: ${{ github.event.inputs.version}} - name: Build application run: npm run tauri build From 43f8230744f5f95f16e23629aafd739cc822bcfd Mon Sep 17 00:00:00 2001 From: Damien Date: Sat, 22 Feb 2025 05:05:51 -0500 Subject: [PATCH 35/35] Update release.yaml --- .github/workflows/release.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 3313282..f6f57ae 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -84,6 +84,10 @@ jobs: - name: Install node dependencies run: npm install + + - name: Install zip utility on Windows + if: matrix.os == 'windows-latest' + run: choco install zip -y - name: Build application run: npm run tauri build