{"id":19186116,"url":"https://github.com/bibibala/quasar-electron-webpack","last_synced_at":"2025-08-31T17:47:24.348Z","repository":{"id":261030094,"uuid":"879539056","full_name":"bibibala/quasar-electron-webpack","owner":"bibibala","description":"quasar electron; 调用DLL,indexDB集成,处理原生node依赖,打包之后只保留zh_CN","archived":false,"fork":false,"pushed_at":"2024-11-04T09:53:31.000Z","size":99799,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-23T02:45:18.515Z","etag":null,"topics":["electron","indexeddb","koffi","quasar-framework"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bibibala.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-28T05:10:41.000Z","updated_at":"2024-11-04T09:53:34.000Z","dependencies_parsed_at":"2024-11-04T10:40:09.370Z","dependency_job_id":null,"html_url":"https://github.com/bibibala/quasar-electron-webpack","commit_stats":null,"previous_names":["bibibala/quasar-electron-webpack"],"tags_count":1,"template":true,"template_full_name":null,"purl":"pkg:github/bibibala/quasar-electron-webpack","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bibibala%2Fquasar-electron-webpack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bibibala%2Fquasar-electron-webpack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bibibala%2Fquasar-electron-webpack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bibibala%2Fquasar-electron-webpack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bibibala","download_url":"https://codeload.github.com/bibibala/quasar-electron-webpack/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bibibala%2Fquasar-electron-webpack/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273018114,"owners_count":25031596,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-31T02:00:09.071Z","response_time":79,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["electron","indexeddb","koffi","quasar-framework"],"created_at":"2024-11-09T11:13:23.655Z","updated_at":"2025-08-31T17:47:24.306Z","avatar_url":"https://github.com/bibibala.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Quasar Electron Template\n\n## 功能说明\n\n### build 优化\n- 在afterPack钩子里,我删除了除了中文外的语言包,适配了 win 和 mac,我自己尝试过很多次,删除之后大概可以减少 30mb\n- 对 koffi 的优化,我删除了 除 build 之外的所有目录 只保留了,koffi/build/koffi,我所需要的平台的架构.node文件\n- 删除了之后可以减少 70mb 左右,无用的文件很多\n\n\n### 调用 dll 方法和 路径动态处理\n- 我使用的是koffi\n\n####\n```js\n    // 如下方，你的文件名称必须为\n    // win32     test-win32.dll\n    // win64     test-win64.dll\n    // mac-arm       test-arm.dylib\n    // mac-x86       test-x86.dylib\n\n    const path = getLibraryPath('test')\n    // 返回  \"path/to/test.dylib\"\n    koffi.load(path)\n```\n- path 是最终打包后的动态路径\n- 我还对架构进行了区分,只区分了 mac 和 win; 只不过需要采用我的明明规则\n\n\n### 数据存储\n- 我采用的方案是 indexDB, 数据量的问题可以保证\n- 同时还不需要rebuild或者一些其他的复杂配置,更加容易上手,多方考虑没有采用 sqlite3\n\n### 日志捕获\n- 我准备采用 Sentry\n- 不采用 electron-log 的原因,我觉得最终还是要,上传日志到自己的服务器,比较繁琐,不如直接用人家的解决方案;\n- 功能非常全面,推荐接入\n- 配置比较简单可以看看官方文档,我这里没有添加\n\n## Install the dependencies\n\n```bash\npnpm i\n```\n\n### Start the app in development mode (hot-code reloading, error reporting, etc.)\n\n```bash\nquasar dev\n```\n\n### Lint the files\n\n```bash\npnpm run lint\n```\n\n### Format the files\n\n```bash\npnpm run format\n```\n\n### Build the app for production\n\n```bash\nquasar build\n```\n\n### Customize the configuration\n\nSee [Configuring quasar.config.js](https://v2.quasar.dev/quasar-cli-webpack/quasar-config-js).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbibibala%2Fquasar-electron-webpack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbibibala%2Fquasar-electron-webpack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbibibala%2Fquasar-electron-webpack/lists"}