desktop: use app version from autoUpdater

This commit is contained in:
Abdullah Atta
2024-01-31 14:46:42 +05:00
parent f98b53e9b8
commit bf12385099
2 changed files with 5 additions and 3 deletions

View File

@@ -1,4 +1,5 @@
node_modules
build
output
dist
dist
_catalog

View File

@@ -19,9 +19,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
import { autoUpdater } from "electron-updater";
import { config } from "./config";
import { version } from "../../package.json";
const CHANNEL = version.endsWith("-beta") ? "beta" : "latest";
const CHANNEL = autoUpdater.currentVersion.raw.endsWith("-beta")
? "beta"
: "latest";
async function configureAutoUpdater() {
autoUpdater.setFeedURL({
provider: "generic",