Skip to content

Commit

Permalink
Merge pull request #164 from 4gray/master
Browse files Browse the repository at this point in the history
Merge back from release branch to electron
  • Loading branch information
4gray authored Sep 19, 2022
2 parents cd3496f + 1666376 commit fb844b5
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 24 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,9 @@ jobs:
npx electron-builder --linux snap --armv7l --publish always
npx electron-builder --linux snap --x64 --publish always
npx electron-builder --linux deb rpm --x64 --publish always
npx electron-builder --linux deb --ia32 --publish always
npx electron-builder --linux deb --arm64 --publish always
npx electron-builder --linux deb --armv7l --publish always
npx electron-builder --linux AppImage --x64 --publish always
npx electron-builder --linux AppImage --ia32 --publish always
npx electron-builder --linux AppImage --arm64 --publish always
npx electron-builder --linux AppImage --armv7l --publish always
env:
Expand Down Expand Up @@ -69,4 +67,4 @@ jobs:

# If the commit is tagged with a version (e.g. "v1.0.0"),
# release the app after building
release: ${{ startsWith(github.ref, 'refs/tags/v') }}
release: ${{ startsWith(github.ref, 'refs/tags/v') }}
2 changes: 1 addition & 1 deletion angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"build": {
"builder": "@angular-builders/custom-webpack:browser",
"options": {
"outputPath": "build",
"outputPath": "dist",
"index": "src/index.html",
"main": "src/main.ts",
"tsConfig": "src/tsconfig.app.json",
Expand Down
22 changes: 14 additions & 8 deletions electron-builder.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,26 @@
},
"files": [
"**/*",
"dist",
"!**/*.ts",
"!*.code-workspace",
"!LICENSE.md",
"!README.md",
"!CHANGELOG.md",
"!package.json",
"!package-lock.json",
"!src/",
"!e2e/",
"!hooks/",
"!angular.json",
"!tsconfig.json",
"!tslint.json"
"!tsconfig.*.json",
"!tslint.json",
"!*.png",
"!coverage"
],
"win": {
"icon": "build/assets/icons",
"icon": "dist/assets/icons",
"compression": "maximum",
"target": [
{
Expand All @@ -28,31 +34,31 @@
]
},
"mac": {
"icon": "build/assets/icons/icon-1024.png",
"icon": "dist/assets/icons/icon-1024.png",
"target": {
"target": "dmg",
"arch": ["universal"]
}
},
"linux": {
"icon": "build/assets/icons",
"icon": "dist/assets/icons",
"category": "Video",
"target": [
{
"target": "AppImage",
"arch": ["x64", "ia32", "armv7l", "arm64"]
"arch": ["x64", "armv7l", "arm64"]
},
{
"target": "deb",
"arch": ["x64", "ia32", "armv7l", "arm64"]
"arch": ["x64", "armv7l", "arm64"]
},
{
"target": "rpm",
"arch": ["x64", "ia32", "arm64", "armv7l"]
"arch": ["x64", "arm64", "armv7l"]
},
{
"target": "Snap",
"arch": ["x64", "ia32", "arm64", "armv7l"]
"arch": ["x64", "arm64", "armv7l"]
}
]
}
Expand Down
4 changes: 2 additions & 2 deletions electron/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function createWindow(): BrowserWindow {
},
resizable: true,
darkTheme: true,
icon: path.join(__dirname, '../build/assets/icons/icon.png'),
icon: path.join(__dirname, '../dist/assets/icons/icon.png'),
titleBarStyle: 'hidden',
frame: false,
minWidth: 900,
Expand All @@ -50,7 +50,7 @@ function createWindow(): BrowserWindow {
} else {
win.loadURL(
url.format({
pathname: path.join(__dirname, '../build/index.html'),
pathname: path.join(__dirname, '../dist/index.html'),
protocol: 'file:',
slashes: true,
})
Expand Down
2 changes: 1 addition & 1 deletion electron/menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export class AppMenu {
openAboutWindow({
icon_path: path.join(
__dirname,
'build/assets/icons/icon.png'
'../dist/assets/icons/icon.png'
),
copyright: 'Copyright (c) 2020-2022 4gray',
package_json_dir: __dirname,
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

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

14 changes: 8 additions & 6 deletions src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,14 @@ export function DataFactory(dbService: NgxIndexedDBService, http: HttpClient) {
deps: [HttpClient],
},
}),
ServiceWorkerModule.register('ngsw-worker.js', {
enabled: AppConfig.production,
// Register the ServiceWorker as soon as the app is stable
// or after 30 seconds (whichever comes first).
registrationStrategy: 'registerWhenStable:30000',
}),
!isElectron
? ServiceWorkerModule.register('ngsw-worker.js', {
enabled: AppConfig.production,
// Register the ServiceWorker as soon as the app is stable
// or after 30 seconds (whichever comes first).
registrationStrategy: 'registerWhenStable:30000',
})
: [],
],
providers: [
{
Expand Down
2 changes: 1 addition & 1 deletion src/app/shared/components/header/header.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
</mat-menu>
</ng-template>
<ngx-whats-new
*ngIf="isDialogVisible$ | async"
*ngIf="!isElectron && isDialogVisible$ | async"
(closeModal)="setDialogVisibility(false)"
[items]="modals"
[options]="options"
Expand Down

1 comment on commit fb844b5

@vercel
Copy link

@vercel vercel bot commented on fb844b5 Sep 19, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

iptvnator – ./

iptvnator-4gray.vercel.app
iptvnator.vercel.app
iptvnator-git-electron-4gray.vercel.app

Please sign in to comment.