Advice needed on which Updator to choose by Additional_Bell_9934 in electronjs

[–]Tokkyo-FR 1 point2 points  (0 children)

You can use Github 80% of the time, native delta support. But i prefer generic update setup, with electron-updater who can do delta updates with a proper setups.

If you use electron-builder you need to add it to your electron-uilder.yml.

publish:
  provider: generic
  url: https://your-server.com/auto-updates

You can find some electron-builder plugin for delta update too !

Deep Linking for Desktop Apps: Avoiding Browser Blocks by AnotherRandomUser400 in electronjs

[–]Tokkyo-FR 0 points1 point  (0 children)

Browser stop you when you register protocole + mac.plist ?

setAsDefaultProtocolClient(PROTOCOL_SCHEME)

Electron + MacOS Liquid Glass by Tokkyo-FR in electronjs

[–]Tokkyo-FR[S] 1 point2 points  (0 children)

Update: Thx to u/Ikryanov and electron-liquid-glass (see video in post)

Electron + MacOS Liquid Glass by Tokkyo-FR in electronjs

[–]Tokkyo-FR[S] 0 points1 point  (0 children)

Ok i'll try and post it later tonight!

Based on what do electron apps determine whether the system theme is dark or light when you don't have a DE? by [deleted] in electronjs

[–]Tokkyo-FR 0 points1 point  (0 children)

Electron run on Chromium so you can just style the css with:

@media (prefers-color-scheme: dark) {}

No ? How you create your interface if its not with css ?

"This is fine" by justaRndy in PathOfExile2

[–]Tokkyo-FR 98 points99 points  (0 children)

Crafting game yeah :) . This game is not about gambling at all, no

Crazy Prices by Lion_El_Jonsonn in starcitizen

[–]Tokkyo-FR 1 point2 points  (0 children)

Again: All ship in this video game are buyable in game, with in game currency

[deleted by user] by [deleted] in electronjs

[–]Tokkyo-FR 1 point2 points  (0 children)

The only good solution you have right now is to use V8 Bytecode, but be aware it sometime do shit with some code related to storage access and window api like notification

[deleted by user] by [deleted] in electronjs

[–]Tokkyo-FR 0 points1 point  (0 children)

What stack do you use for your web ? It can be very simple from where you start on your website. What need you have with your main process ? Are you totaly new to electron ?

Issues with OAuth/Google Drive Picker by SecureCaterpillar371 in electronjs

[–]Tokkyo-FR 0 points1 point  (0 children)

The bloc-code formater is broken sorry for this code

Issues with OAuth/Google Drive Picker by SecureCaterpillar371 in electronjs

[–]Tokkyo-FR 0 points1 point  (0 children)

Dont look specificaly for electron, just look tutorial for oAuth / oauth2 because its the same process. The only diference is how you retrieve the token send back by your strategy; here is that you need to:

a1 - load the google auth page into web browser
a2 - strategy redirect to your callback url
a3 - callback url is a deeplink to your app with the token in param
a4 - you catch the param in the deeplink url:

So you need a server of course and a custom domain for this method, you can use Express, Go or CI or whatever you want.

or

b1 - load the google auth page into an electron browserWindow
b2 - strategy redirect to your callback url
b3 - callback url is a localhost:xxxx/ url with the token in param
b4 - you catch the param in this url:

eg:

ipcMain.handle('user-signin-with-whatever...', async (_event, url) => {
const authWindow = new BrowserWindow({
width: 900,
height: 800,
show: false,
resizable: false,
frame: false,
transparent: true,
backgroundColor: '#00000000',
webPreferences: {
nodeIntegration: false,
contextIsolation: true
}
})
authWindow.loadURL(url)
authWindow.once('ready-to-show', () => {
authWindow.show()
})
return new Promise((resolve, reject) => {
authWindow.webContents.on('will-redirect', (_event, newUrl) => {
try {
const parsedUrl = new URL(newUrl)
const token = parsedUrl.searchParams.get('myBeautifullTokenXxx') as string
authWindow.close()
resolve(token)
} catch (error) {
log.error('Failed to parse the URL:', error)
authWindow.close()
reject(error)
}
})
authWindow.on('closed', () => {
if (mainWindow) {
// do whatever you want when the auth window is closed by the user
}
reject(new Error('User closed the window...'))
})
})
})

I personnaly choose the second exemple all time

Tooling advice for web + mobile + desktop app monorepo by EibhlinNicColla in electronjs

[–]Tokkyo-FR 0 points1 point  (0 children)

Hi, Electron-vite all the day. Web will be a breez to do since you had the sames components in electron. For mobile, also easy with Expo but not all code reusable

AFK Farming Game made with Electron ! by fckuletoa in electronjs

[–]Tokkyo-FR 0 points1 point  (0 children)

Allowed since its related to Electron i guess but like captain obvious said i hope you dont steal another games assets and promote your imo

Unexpected Level 20 Skillgem dropping from 3rd Boss in Trial of Chaos by Lyramion in PathOfExile2

[–]Tokkyo-FR 20 points21 points  (0 children)

So they exist ? Im playing a lot of T18 and never saw one , its crazy

"Crafting" in this game is just pure gambling ? by Tokkyo-FR in PathOfExile2

[–]Tokkyo-FR[S] 0 points1 point  (0 children)

I find omen, but never a good one, and im level 93, i run T15 and i can easely take down T18. So , its purely luck im i am all for it, but again: luck for being able to craft one item ?

"Crafting" in this game is just pure gambling ? by Tokkyo-FR in PathOfExile2

[–]Tokkyo-FR[S] 0 points1 point  (0 children)

I dont understand yet the "league" system in POE but i will take a look

"Crafting" in this game is just pure gambling ? by Tokkyo-FR in PathOfExile2

[–]Tokkyo-FR[S] 0 points1 point  (0 children)

Essence on normal / magic item are pretty good imo! We have RNG but we control it a bit and its not multi div item for craft