-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7690abf
commit cba79d4
Showing
16 changed files
with
126 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
# @s-8/core-react | ||
|
||
## 0.2.3 | ||
|
||
## 0.2.2 | ||
|
||
### Patch Changes | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
# @s-8/core | ||
|
||
## 0.2.3 | ||
|
||
## 0.2.2 | ||
|
||
### Patch Changes | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
|
||
/** | ||
* Update-version.mjs. | ||
* | ||
* @description Update cargo version. | ||
*/ | ||
|
||
import { | ||
readFile, writeFile, | ||
} from 'fs/promises' | ||
import path from 'path' | ||
|
||
const updateCargoVersion = async () => { | ||
|
||
try { | ||
|
||
// Leer package.json | ||
const packageJsonPath = path.join( process.cwd(), 'package.json' ) | ||
const packageJson = JSON.parse( await readFile( packageJsonPath, 'utf-8' ) ) | ||
const newVersion = packageJson.version | ||
|
||
// Leer Cargo.toml | ||
const cargoTomlPath = path.join( process.cwd(), 'src-tauri', 'Cargo.toml' ) | ||
let cargoTomlContent = await readFile( cargoTomlPath, 'utf-8' ) | ||
|
||
// Buscar y reemplazar la línea con la versión | ||
const versionRegex = /^version\s*=\s*"(.*)"/m | ||
if ( versionRegex.test( cargoTomlContent ) ) { | ||
|
||
cargoTomlContent = cargoTomlContent.replace( versionRegex, `version = "${newVersion}"` ) | ||
|
||
} else { | ||
|
||
// Si no existe el campo, lo agregamos al final del archivo | ||
cargoTomlContent += `\n[package]\nversion = "${newVersion}"\n` | ||
|
||
} | ||
|
||
// Escribir el archivo actualizado | ||
await writeFile( cargoTomlPath, cargoTomlContent, 'utf-8' ) | ||
|
||
console.log( `Version updated to ${newVersion} in Cargo.toml` ) | ||
|
||
} catch ( error ) { | ||
|
||
console.error( 'Error updating Cargo.toml version:', error ) | ||
|
||
} | ||
|
||
} | ||
|
||
updateCargoVersion() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
# @s-8/app | ||
|
||
## 0.2.3 | ||
|
||
### Patch Changes | ||
|
||
- Fix release issues | ||
|
||
## 0.2.2 | ||
|
||
### Patch Changes | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -73,5 +73,6 @@ | |
} | ||
} | ||
}, | ||
"productName": "Super8" | ||
"productName": "Super8", | ||
"version": "../package.json" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
# @s-8/exts | ||
|
||
## 0.2.3 | ||
|
||
## 0.2.2 | ||
|
||
### Patch Changes | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.