mirror of
https://github.com/ivabus/gui
synced 2025-04-23 14:07:14 +03:00
Co-authored-by: neil molina <neil@neils-MacBook-Pro.local>
This commit is contained in:
parent
f0796852a4
commit
84339660c9
2 changed files with 5 additions and 2 deletions
|
@ -110,10 +110,13 @@ autoUpdater.on("update-downloaded", (info) => {
|
||||||
});
|
});
|
||||||
|
|
||||||
export const isDev = () => fs.existsSync(path.join(getTeaPath(), "tea.xyz/gui/dev"));
|
export const isDev = () => fs.existsSync(path.join(getTeaPath(), "tea.xyz/gui/dev"));
|
||||||
|
export const isForceUpdate = () =>
|
||||||
|
fs.existsSync(path.join(getTeaPath(), "tea.xyz/gui/force-auto-update"));
|
||||||
|
|
||||||
async function setPublishURL() {
|
async function setPublishURL() {
|
||||||
try {
|
try {
|
||||||
const feedUrl = `https://gui.tea.xyz/${isDev() ? "dev" : "release"}`;
|
const folder = isForceUpdate() ? "auto-update-test" : isDev() ? "dev" : "release";
|
||||||
|
const feedUrl = `https://gui.tea.xyz/${folder}`;
|
||||||
log.info(`feedUrl$: ${feedUrl}`);
|
log.info(`feedUrl$: ${feedUrl}`);
|
||||||
autoUpdater.setFeedURL(feedUrl);
|
autoUpdater.setFeedURL(feedUrl);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "tea",
|
"name": "tea",
|
||||||
"version": "0.2.3",
|
"version": "0.2.4",
|
||||||
"private": true,
|
"private": true,
|
||||||
"description": "tea gui app",
|
"description": "tea gui app",
|
||||||
"author": "tea.xyz",
|
"author": "tea.xyz",
|
||||||
|
|
Loading…
Reference in a new issue