Skip to content

Commit c3900e4

Browse files
committed
Remove SNAPCRAFT_BUILD_ENVIRONMENT and snapcraft installation from CI workflows; enable UsePortalDialogs feature in main.ts
1 parent dde14b7 commit c3900e4

File tree

3 files changed

+2
-8
lines changed

3 files changed

+2
-8
lines changed

.github/workflows/merge.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ jobs:
99
merge_build_on_linux:
1010
runs-on: ubuntu-22.04
1111
if: github.event.pull_request.merged == true
12-
env:
13-
SNAPCRAFT_BUILD_ENVIRONMENT: destructive
1412
steps:
1513
- uses: actions/checkout@v2
1614
- uses: actions/setup-node@master
@@ -20,8 +18,6 @@ jobs:
2018
run: sudo apt update
2119
- name: install rpm and libarchive
2220
run: sudo apt install rpm libarchive-tools
23-
- name: Install snapcraft
24-
run: sudo snap install snapcraft --classic
2521
- name: install dependencies
2622
run: npm install
2723
- name: run unit tests

.github/workflows/nightly.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ on:
99
jobs:
1010
nightly_build_on_linux:
1111
runs-on: ubuntu-22.04
12-
env:
13-
SNAPCRAFT_BUILD_ENVIRONMENT: destructive
1412
steps:
1513
- uses: actions/checkout@v2
1614
- uses: actions/setup-node@master
@@ -20,8 +18,6 @@ jobs:
2018
run: sudo apt update
2119
- name: install rpm and libarchive
2220
run: sudo apt install rpm libarchive-tools
23-
- name: Install snapcraft
24-
run: sudo snap install snapcraft --classic
2521
- name: install dependencies
2622
run: npm install
2723
- name: run unit tests

main.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ import { SettingsStore } from './main/common/settings/settings-store';
2626
app.commandLine.appendSwitch('disable-color-correct-rendering'); // Prevents incorrect color rendering
2727
app.commandLine.appendSwitch('autoplay-policy', 'no-user-gesture-required'); // Prevents requiring user interaction to play audio
2828
app.commandLine.appendSwitch('disable-http-cache'); // Disables clearing of the cache folder at each startup
29+
app.commandLine.appendSwitch('enable-features', 'UsePortalDialogs');
30+
app.commandLine.appendSwitch('ozone-platform-hint', 'auto');
2931

3032
/**
3133
* Settings

0 commit comments

Comments
 (0)