Skip to content

Commit

Permalink
Fix linux appimage
Browse files Browse the repository at this point in the history
  • Loading branch information
Geometrically committed Oct 2, 2024
1 parent a466778 commit dd20413
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 354 deletions.
346 changes: 0 additions & 346 deletions apps/app/msi/main.wxs

This file was deleted.

3 changes: 0 additions & 3 deletions apps/app/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@
"certificateThumbprint": null,
"digestAlgorithm": "sha256",
"timestampUrl": "http://timestamp.digicert.com",
"wix": {
"template": "./msi/main.wxs"
},
"nsis": {
"installMode": "perMachine",
"installerHooks": "./nsis/hooks.nsi"
Expand Down
3 changes: 3 additions & 0 deletions apps/app/tauri.linux.conf.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"mainBinaryName": "ModrinthApp"
}
11 changes: 6 additions & 5 deletions apps/frontend/src/public/promo-frame.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,12 @@

tude.setPrivacySettings({
personalizedAds: personalized ?? true,
})
});
});
}

window.__TAURI_INTERNALS__.invoke("plugin:ads|get_ads_personalization", {})
window.__TAURI_INTERNALS__
.invoke("plugin:ads|get_ads_personalization", {})
.then(initAds)
.catch(() => initAds(true));

Expand Down Expand Up @@ -97,11 +98,11 @@
document.addEventListener("contextmenu", (event) => event.preventDefault());

const plusLink = document.getElementById("plus-link");
plusLink.addEventListener('click', function() {
plusLink.addEventListener("click", function () {
window.__TAURI_INTERNALS__.invoke("plugin:ads|record_ads_click", {});
window.__TAURI_INTERNALS__.invoke("plugin:ads|open_link", {
path: 'https://modrinth.com/plus',
origin: 'https://modrinth.com',
path: "https://modrinth.com/plus",
origin: "https://modrinth.com",
});
});
</script>
Expand Down

0 comments on commit dd20413

Please sign in to comment.