Skip to content

%1 is not a valid win32 application #910

@sanjeevprasad

Description

@sanjeevprasad

I am building an electron app for windows and linux both. but unable to get it working on windows
screenshot from 2017-11-18 12-01-37
I am getting error on windows 7 ultimate 32 bit. running in virtual box..
and my dev environment is on linux 64 bit
currently using electron-builder to build for windows.
here is my package.json file

`{
	"name": "dportal",
	"version": "1.0.0",
	"description": "Distributor Portal",
	"main": "html/js/main.js",
	"private": true,
	"scripts": {
		"start": "electron ./app",
		"pack": "electron-builder --dir",
		"packw": "electron-builder -w --ia32 --dir",
		"postinstall": "electron-builder install-app-deps;electron-builder install-app-deps --platform=win32 --arch=ia32;"
	},
	"author": "author",
	"license": "MIT",
	"dependencies": {},
	"devDependencies": {
		"asar": "^0.14.0",
		"material-design-icons": "^3.0.1",
		"electron": "^1.7.9",
		"electron-builder": "^19.45.5"
	},
	"build": {
		"appId": "com.oapis.dportal",
		"asar": false
	}
}`

i able to run it on linux very well. no conflicts.
but on windows
what I think is that i am not able to generate correct node_sqlite3.node for win32

i even used electron-rebuild -f -w sqlite3 command to generate but that too is not working.
it took my whole yesterday trying to fix that.
can anybody please tell me what the heck am i doing wrong.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions