From f7d0dea6329a3b858fc188aa84fbc22c0ed35417 Mon Sep 17 00:00:00 2001 From: CodeGhost21 <164498022+CodeGhost21@users.noreply.github.com> Date: Fri, 30 Jan 2026 13:18:51 +0530 Subject: [PATCH 1/4] Add Tauri configuration preparation script --- deploy/prepareTauriConfig.js | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 deploy/prepareTauriConfig.js diff --git a/deploy/prepareTauriConfig.js b/deploy/prepareTauriConfig.js new file mode 100644 index 000000000..8ce5e5bb9 --- /dev/null +++ b/deploy/prepareTauriConfig.js @@ -0,0 +1,31 @@ +/* eslint-disable no-null/no-null */ +export default function prepareTauriConfig() { + const config = { + build: { + frontendDist: process.env.BASE_URL, + devUrl: null, + }, + bundle: { + windows: {}, + }, + identifier: 'org.telegram.TelegramAir', + }; + + if (process.env.WITH_UPDATER === 'true') { + config.plugins = { + updater: { + dialog: false, + endpoints: [process.env.UPDATER_GIST_URL], + pubkey: process.env.UPDATER_PUBLIC_KEY, + }, + }; + + config.bundle.createUpdaterArtifacts = true; + } + + if (process.env.KEYPAIR_ALIAS) { + config.bundle.windows.signCommand = `smctl.exe sign --keypair-alias=${process.env.KEYPAIR_ALIAS} --input %1`; + } + + return config; +} From 8613e3a3b4b0aa4131d82e58db80f162780238ef Mon Sep 17 00:00:00 2001 From: CodeGhost21 <164498022+CodeGhost21@users.noreply.github.com> Date: Fri, 30 Jan 2026 13:33:04 +0530 Subject: [PATCH 2/4] Create copy_to_dist.sh for file deployment Add script to copy necessary files to distribution folder --- deploy/copy_to_dist.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 deploy/copy_to_dist.sh diff --git a/deploy/copy_to_dist.sh b/deploy/copy_to_dist.sh new file mode 100644 index 000000000..0c0f6834b --- /dev/null +++ b/deploy/copy_to_dist.sh @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +cp -R ./public/* ${1:-"dist"} + +cp ./src/lib/rlottie/rlottie-wasm.wasm ${1:-"dist"} + +cp ./node_modules/opus-recorder/dist/decoderWorker.min.wasm ${1:-"dist"} + +cp -R ./node_modules/emoji-data-ios/img-apple-64 ${1:-"dist"} +cp -R ./node_modules/emoji-data-ios/img-apple-160 ${1:-"dist"} From 723ff8d5aff0037287003c81231e2a6b621ac6a3 Mon Sep 17 00:00:00 2001 From: CodeGhost21 <164498022+CodeGhost21@users.noreply.github.com> Date: Fri, 30 Jan 2026 13:40:40 +0530 Subject: [PATCH 3/4] Add script to create Telegram Air DMG installer --- deploy/Alan Johnson 2 people in the huddle | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 deploy/Alan Johnson 2 people in the huddle diff --git a/deploy/Alan Johnson 2 people in the huddle b/deploy/Alan Johnson 2 people in the huddle new file mode 100644 index 000000000..891663082 --- /dev/null +++ b/deploy/Alan Johnson 2 people in the huddle @@ -0,0 +1,14 @@ +#!/usr/bin/env bash + +create-dmg \ + --volname "Telegram Air installer" \ + --volicon "./tauri/icons/icon.icns" \ + --background "./tauri/images/background-dmg.tiff" \ + --window-size 540 380 \ + --icon-size 100 \ + --icon "Telegram Air.app" 138 225 \ + --hide-extension "Telegram Air.app" \ + --app-drop-link 402 225 \ + --no-internet-enable \ + "$1" \ + "$2" From 687f1fa1a8a6a99d4b96a868a663ef4341ebb964 Mon Sep 17 00:00:00 2001 From: CodeGhost21 <164498022+CodeGhost21@users.noreply.github.com> Date: Fri, 30 Jan 2026 16:06:30 +0530 Subject: [PATCH 4/4] Rename Alan Johnson 2 people in the huddle to tauri_create_dmg.sh --- .../{Alan Johnson 2 people in the huddle => tauri_create_dmg.sh} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename deploy/{Alan Johnson 2 people in the huddle => tauri_create_dmg.sh} (100%) diff --git a/deploy/Alan Johnson 2 people in the huddle b/deploy/tauri_create_dmg.sh similarity index 100% rename from deploy/Alan Johnson 2 people in the huddle rename to deploy/tauri_create_dmg.sh