Skip to content

Commit

Permalink
Update 1.2.0
Browse files Browse the repository at this point in the history
Fixed an issue with auto-update not working
  • Loading branch information
synthofficial committed Aug 19, 2024
1 parent 8bc5c47 commit d4776ed
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 9 deletions.
9 changes: 8 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,14 @@
"files": [
"dist",
"node_modules",
"package.json"
"package.json",
"electron-builder.yml"
],
"extraFiles": [
{
"from": ".",
"filter": ["electron-builder.yml"]
}
],
"mac": {
"sign": ".erb/scripts/notarize.js",
Expand Down
4 changes: 2 additions & 2 deletions release/app/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion release/app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "streamflix",
"version": "1.0.0",
"version": "1.2.0",
"description": "A desktop app for streaming movies, tv series and anime.",
"license": "MIT",
"author": {
Expand Down
11 changes: 6 additions & 5 deletions src/main/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,16 @@ if (process.env.NODE_ENV === 'production') {
sourceMapSupport.install();
}

if (process.env.NODE_ENV === 'development') {
const devConfigPath = path.join(__dirname, '../../dev-app-update.yml');
autoUpdater.updateConfigPath = devConfigPath;
autoUpdater.forceDevUpdateConfig = true;
let updateConfigPath: string;

if (app.isPackaged) {
updateConfigPath = path.join(process.resourcesPath, 'app-update.yml');
} else {
autoUpdater.updateConfigPath = path.join(__dirname, '../../electron-builder.yml');
updateConfigPath = path.join(__dirname, '..', '..', 'electron-builder.yml');
}

autoUpdater.logger = log;
autoUpdater.updateConfigPath = updateConfigPath;

const isDebug =
process.env.NODE_ENV === 'development' || process.env.DEBUG_PROD === 'true';
Expand Down

0 comments on commit d4776ed

Please sign in to comment.