#323·BingGPT

如何在安装一个用于 Web 链接的 Electron 应用程序时节省 60 多 MB 内存

作者: subhaniminhas创建于 2024年6月20日更新于 2024年6月20日

所以,我做了以下操作,以免安装 deb 文件时麻烦: 1. 创建一个 html 文件,如下所示: 2. <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>AI Engines</title> <style> body { font-family: Arial, sans-serif; margin: 0; padding: 0; } .button-container { display: flex; justify-content: center; align-items: center; height: 100vh; flex-wrap: wrap; } a.button { display: inline-block; padding: 20px; margin: 10px; background-color: #4CAF50; color: white; text-align: center; text-decoration: none; font-size: 24px; border: 2px solid #4CAF50; border-radius: 5px; transition: all 0.3s; cursor: pointer; } a.button:hover { background-color: white; color: #4CAF50; border: 2px solid #4CAF50; } </style> </head> <body> <div class="button-container"> <a href="https://Copilot.microsoft.com/" class="button" target="_blank" onclick="openNewWindow(this.href);return false;">Copilot</a> <a href="https://Gemini.google.com/" class="button" target="_blank" onclick="openNewWindow(this.href);return false;">Gemini</a> <a href="https://poe.com/login" class="button" target="_blank" onclick="openNewWindow(this.href);return false;">Poe</a> <a href="https://www.blackbox.ai/" class="button" target="_blank" onclick="openNewWindow(this.href);return false;">Blackbox AI</a> </div> <script> function openNewWindow(url) { var height = window.screen.height - 100; var width = window.screen.width / 3; var left = window.screen.width; window.open(url, '_blank', 'height=' + height + ',width=' + width + ',left=' + left); window.close(); } </script> </body> </html> 2. 将链接放在桌面上。打开它即可使用所有这些链接。