-
-
Notifications
You must be signed in to change notification settings - Fork 20
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
Showing
4 changed files
with
65 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
const version = Deno.env.get("TRAN_VERSION") | ||
const lang = Deno.env.get("MATRIX_LANG") | ||
|
||
const root = "src-tauri/target/release/bundle/"; | ||
const deb = root + "deb/tran_" + version + "_amd64.deb" | ||
const rpm = root + "rpm/tran-" + version + "-1.x86_64.rpm" | ||
const appimage = root + "appimage/tran_" + version + "_amd64.AppImage" | ||
|
||
const new_deb = "Tran_" + lang + "_amd64.deb" | ||
const new_rpm = "Tran_" + lang + "_amd64.rpm" | ||
const new_appimage = "Tran_" + lang + "_amd64.AppImage" | ||
|
||
await Deno.mkdir("release") | ||
await Deno.copyFile(deb, `release/${new_deb}`) | ||
await Deno.copyFile(rpm, `release/${new_rpm}`) | ||
await Deno.copyFile(appimage, `release/${new_appimage}`) | ||
|
||
for await (const file of Deno.readDir("release")) { | ||
console.log(file.name) | ||
} |
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,23 @@ | ||
const lang = Deno.env.get("MATRIX_LANG") | ||
let arch = Deno.env.get("MATRIX_ARCH") | ||
const version = Deno.env.get("TRAN_VERSION") | ||
|
||
const root = "src-tauri/target/" + arch + "-apple-darwin/release/bundle/"; | ||
|
||
if (arch == "x86_64") { | ||
arch = "x64" | ||
} | ||
|
||
const dmg = root + "dmg/tran_" + version + "_" + arch + ".dmg" | ||
const macos = root + "macos/tran.app" | ||
|
||
const new_dmg = "Tran_" + lang + "_x64.dmg" | ||
const new_macos = "Tran_" + lang + "_x64.app" | ||
|
||
await Deno.mkdir("release") | ||
await Deno.copyFile(dmg, `release/${new_dmg}`) | ||
await Deno.copyFile(macos, `release/${new_macos}`) | ||
|
||
for await (const file of Deno.readDir("release")) { | ||
console.log(file.name) | ||
} |
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,17 @@ | ||
const version = Deno.env.get("TRAN_VERSION") | ||
const lang = Deno.env.get("MATRIX_LANG") | ||
|
||
const root = "src-tauri/target/release/bundle/"; | ||
const msi = root + "msi/Tran_" + version + "_x64_en-US.msi" | ||
const nsis = root + "nsis/Tran_" + version + "_x64-setup.exe" | ||
|
||
const new_msi = "Tran_" + lang + "_x64.msi" | ||
const new_nsis = "Tran_" + lang + "_x64-setup.exe" | ||
|
||
await Deno.mkdir("release") | ||
await Deno.copyFile(msi, `release/${new_msi}`) | ||
await Deno.copyFile(nsis, `release/${new_nsis}`) | ||
|
||
for await (const file of Deno.readDir("release")) { | ||
console.log(file.name) | ||
} |