ankurk91 / google-chat-electron

An unofficial desktop app for Google Chat :electron:
GNU General Public License v3.0
162 stars 49 forks source link

Feature Request: Windows build. #21

Closed vico93 closed 3 years ago

vico93 commented 3 years ago

Is a Windows build feasible for the project? Although we have Gmail-desktop already, a dedicated Google chat standalone app would be very interesting...

ankurk91 commented 3 years ago

Yes, it is possible.

But i don't have time to build and install and test. I haven't used Windows from 5 years. Need to download the ISO and install in a VM. 😅

I am very busy with my employer's projects now a days. I will try to extract time but can't promise before Jan 2022.

PS. I don't want to use electron-builder.

dtolb commented 3 years ago

@vico93

If you can pull down locally: add the following the package.json

"scripts": {
    "prepack:windows": "yarn run clean:dist && yarn run ts",
    "pack:windows": "electron-packager . --out=./dist/ --icon=./resources/icons/normal/mac.icns",
    "windows": "yarn run prepack:windows && yarn run pack:windows"
},
  "devDependencies": {
    "electron-installer-windows": "^3.0.0",
  },

and remove

  "devDependencies": {
    "electron-installer-debian": "^3.1.0",
  },

You can then install by:

> npm install
> npm run windows
>

Then in the /dist folder you should have a workable app. I've not had any issues and follow the upstream and just rebase my changes on top each release.

image image

ankurk91 commented 3 years ago

I was unable to make installer via electron-installer-windows on window 7

ankurk91 commented 3 years ago

Fixed in 2.8.0