Skip to content

Commit

Permalink
Bug fixes, desktop file, and Electron 16 :3
Browse files Browse the repository at this point in the history
  • Loading branch information
Lleyton Gray committed Dec 5, 2021
1 parent 3ad737a commit 068a23f
Show file tree
Hide file tree
Showing 6 changed files with 137 additions and 105 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ jobs:
- name: Install Node.js
uses: actions/setup-node@v1
with:
node-version: 14
node-version: 16

- name: Install required build toolchain
if: matrix.os == 'ubuntu-latest'
run: sudo apt-get install -y libarchive-tools

- name: Configure fontawesome
uses: DamianReeves/[email protected]
with:
Expand Down
10 changes: 10 additions & 0 deletions electron-builder.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,16 @@
"publish": "github",
"linux": {
"category": "Network",
"desktop": {
"Name": "Innatical Skye",
"Comment": "Browse the Web",
"GenericName": "Internet",
"Exec": "skye",
"Icon": "static/icons/skye.png",
"Type": "Application",
"StartupNotify": false,
"Categories": "Internet"
},
"target": [
{
"target": "AppImage",
Expand Down
20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "skye",
"version": "6.1.0",
"version": "6.2.0",
"sideEffects": false,
"description": "Extensible, fast and innovative web browser with Innatical UI.",
"keywords": [
Expand Down Expand Up @@ -48,13 +48,13 @@
"@types/crypto-js": "^4.0.1",
"@types/jszip": "^3.4.1",
"@types/nedb": "1.8.12",
"@types/node": "14.14.39",
"@types/node": "16.11.11",
"@types/node-fetch": "^2.5.10",
"@types/react": "17.0.32",
"@types/react-dom": "17.0.10",
"@types/react": "17.0.37",
"@types/react-dom": "17.0.11",
"@types/react-helmet": "^6.1.4",
"@types/rimraf": "^3.0.0",
"@types/styled-components": "5.1.15",
"@types/styled-components": "5.1.16",
"@typescript-eslint/eslint-plugin": "^4.22.0",
"@typescript-eslint/parser": "^4.22.0",
"@wexond/rpc-core": "^1.0.3",
Expand All @@ -65,9 +65,9 @@
"concurrently": "^6.0.2",
"copy-webpack-plugin": "^8.1.1",
"cross-env": "7.0.3",
"electron": "^15.3.0",
"electron-builder": "22.13.1",
"electron-updater": "4.3.9",
"electron": "^16.0.4",
"electron-builder": "22.14.5",
"electron-updater": "4.6.1",
"eslint": "^7.24.0",
"eslint-config-prettier": "^8.2.0",
"eslint-plugin-prettier": "^3.4.0",
Expand All @@ -83,7 +83,7 @@
"nedb": "1.8.0",
"node-bookmarks-parser": "^2.0.0",
"node-fetch": "^2.6.1",
"prettier": "2.2.1",
"prettier": "2.5.1",
"pretty-bytes": "5.6.0",
"react": "17.0.2",
"react-dom": "17.0.2",
Expand All @@ -98,7 +98,7 @@
"tsconfig-paths-webpack-plugin": "^3.5.1",
"typescript": "^4.2.4",
"typescript-plugin-styled-components": "^1.5.0",
"webpack": "5.59.1",
"webpack": "5.64.4",
"webpack-bundle-analyzer": "^4.4.1",
"webpack-cli": "4.9.1",
"webpack-dev-server": "^3.11.2",
Expand Down
11 changes: 9 additions & 2 deletions src/main/view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,12 @@ export class View {
plugins: true,
nativeWindowOpen: true,
webSecurity: true,
// @ts-ignore
transparent: true,
javascript: true,
},
});

this.browserView.setBackgroundColor('#fff');

this.incognito = incognito;

this.webContents.userAgent = getUserAgentForURL(
Expand Down Expand Up @@ -140,6 +140,13 @@ export class View {
'did-navigate-in-page',
async (e, url, isMainFrame) => {
if (isMainFrame) {
this.window.updateTitle();
await this.updateData();

this.emitEvent(
'title-updated',
this.browserView.webContents.getTitle(),
);
this.emitEvent('did-navigate', url);

await this.addHistoryItem(url, true);
Expand Down
22 changes: 22 additions & 0 deletions skye.appstream.xml → static/skye.appstream.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,26 @@
<caption>The Homepage</caption>
</screenshot>
</screenshots>
<releases>
<release version="6.2.0" date="2021-12-04" />
<description>
<p>Added</p>
<ul>
<li>Appstream Info</li>
<lil>Desktop File</li>
</ul>
<p>Changed</p>
<ul>
<li>Upgrade to Electron 16</li>
<li>Upgrade to Node 16</li>

</ul>
<p>Fixed</p>
<ul>
<li>Transparent Background bug</li>
<li>Fix page title not updating</li>
</ul>
</description>
</release>
</releases>
</component>
Loading

0 comments on commit 068a23f

Please sign in to comment.