i am new to Electron so I went through all the guick start guides, examples and tutorials. I have build a simple Website that i need to convert with Electron and publish as a Windows exe file.
As i am working on MacOS, builds for MacOS are running, all fine.
For Windows i´ve installed mono and wine and found a great tutorial here
When using electron-packager with the following command, it generates an exe which runs only on Windows 10 - but not Windows 11. There is no error message, just nothing opens.
"npx electron-packager . <appname> --platform=darwin,linux,win32 --arch=ia32,x64 --icon=path/to/icons/dir"
When using electron-builder with the following command, it generates an exe which runs only on Windows 11 - but not Windows 10. There is no error message, just nothing opens.
electron-builder -mwl
Can anybody help me out, what´s the right command/parameter to generate one .exe for both platforms? Cannot find a solution on my own after 3-4 hours search, trial & error.
Thanks in advance.
Related
I'm on an M1 Mac Mini, Monterey 12.0.1, with XCode 13.1 & it's command-line tools and freshly-installed Flutter MacOS 2.8.0. I create a base Flutter project with
flutter create appname
When I do "flutter run" in the ios folder (in the parent folder it launches ok in Chrome), I get the message:
Could not build the application for the simulator.
Error launching application on iPhone 13.
I tried it with the simulator running, and not. It looks like the Runner XCode project build stages runs a script, xcode_backend.sh. I also tried loading the project in the XCode UI to build and get 'Command PhaseScriptExecution failed with a nonzero exit code' on that script.
If I go and run this script directly, from the project folder of the ios folder:
guy#Guys-Mac-mini ios % /bin/sh "$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh"
I get the message:
error: Your Xcode project is incompatible with this version of Flutter. Run "rm -rf ios/Runner.xcodeproj" and "flutter create ." to regenerate.
I tried the steps indicated, which I also found on Google, and removed the folder and regenerated the project, but the same message is appearing. (I did export the FLUTTER_ROOT environment variable, both in the shell and it's also defined in the XCode project settings.
I can build and run the flutter apps to Chrome, but not for the iOS simulator. I also have no problem building and running Swift apps I've coded on the simulator.
I got my Windows and Android setup running in minutes, but on the M1 Mac it's been hours without success. Any ideas?
I'm a developer with decent of experience, but this is my first stab at Flutter and cross-platform (other than Xamarin). Any help is appreciated.
I can't fully explain it, but the problem I was having was related to my having the project files on an SMB share I was accessing from the Mac.
I setup the project on an SMB share so I could access it from my Windows and Mac workstations. I found that any flutter project on that share would fail compilation.
To test this, I created a new flutter app on my Mac Documents folder, comiled and ran it succesfully in the iOS simulator using 'flutter run'. When I moved that project to the SMB share and tried to run it, I got the compilation error again, and it wouldn't run (I also tried clean and run). I moved the project back to the local drive Documents folder, and was able to run it again.
I also noticed that the Mac access to the SMB share is painfully slow, though I tried a required_signon fixes from
https://kb.synology.com/en-us/DSM/tutorial/What_can_I_do_to_fix_slow_SMB_file_transfers_on_OS_X_10_11_5 but it didn't help.
I had even tried to factory reset my Mac, and I thought that fixed it, but it was only because I hadn't connected to the share yet, and made a test project on the local drive.
PS: I don't expect to use the exact same Flutter project between the Mac and Windows workstations because of paths and SDK locations, but I am using it as a convenient place for transfering the source files.
My team was able to solve this by supplying an absolute path to the xcode_backend script in a run phase and running it. Running it once seemed to be enough and we could remove it thereafter:
/bin/sh "/absolute-path-to-flutter/packages/flutter_tools/bin/xcode_backend.sh" thin
/bin/sh "/absolute-path-to-flutter/packages/flutter_tools/bin/xcode_backend.sh" embed
I want to create a electron build for Mac Mini M1 support but the build process taking so much of time to generate a webpack build.It takes around 5-6 hours and still showing me only 14%
Can anyone help out from this issue.I have attached a screen shot below.
There is a python issue. Try to install python version 3.8 or greater and nodeJS version 14.15.3 or greater.
Compile your custom addons again with using electron-rebuild command like this
electron-rebuild --arch=arm64
Then create a build it will definitely working.
I have Windows 8.1 and Visual Studio 2015 Community version and created one "hello world" using Apache Cordova.
I want to build and run that app without using Mac pc remotely.
I have my iphone 6 but don't know how to run that app in my phone like run apk in android.
I have my developer account but don't have Mac system so Is it possible to run and get the ".ipa" file from windows and run in my phone by debugging or release it, any tutorial any help would be appreciate.
I have come across these links but every link suggest to have Mac Mini / Mac to build the app, even on a Microsoft's official site in Link 4 they say it is not possible but still is there any way to do it please suggest me thanks in advance.
Link 1
Link 2
Link 3
Link 4
I recently upgraded two separate development environments to the new Azure SDK 2.3 tools.
The storage emulator did not initialise as expected. So I go to run DSinit to initialise the database and it's gone! It's like someone has stolen it. I have searched the whole disk and it's not there. So now I have a storage emulator that will not initialise and the tool to repair it has somehow disappeared when I upgraded from Azure SDK 2.2 to 2.3.
The question is, Where can I get DSInit. and Is this just me?
I have tried uninstalling and reinstalling both SDK's.
It looks like DSInit is no longer the way to start the emulator.
The options I can see is to use CSRun from an Azure SDK Command Prompt
csrun /devstore:start
This appears to have been replaced by WAStorageEmulator.exe that can be found at %ProgramFiles(x86)%\Microsoft SDKs\Windows Azure\Storage Emulator. From there, WAStorageEmulator.exe can be run to init, start and stop the emulator.
WAStorageEmulator.exe init : Initialize the emulator database and configuration.
WAStorageEmulator.exe start : Start the emulator.
WAStorageEmulator.exe stop : Stop the emulator.
WAStorageEmulator.exe status : Get current emulator status.
WAStorageEmulator.exe clear : Delete all data in the emulator.
WAStorageEmulator.exe help [command] : Show general or command-specific help.
There is also an icon on the Start Menu/Screen that runs WAStorageEmulator.exe for you in a command prompt.
DSInit is replaced by WAStorageEmulator. You can run the following commands in Windows Azure Command Prompt - 2.3:
Change the directory:
cd C:\Program Files (x86)\Microsoft SDKs\Windows Azure\Storage Emulator
Running the utility:
WAStorageEmulator init /sqlInstance .\sqlexpress
Hope this helps!
Can anybody please tell me how to clean a blackberry 7 project.I am using phonegap and command line in mac for building the project into the device.
For e.g the run command I am using is
./cordova/run blackberry
Phonegap website hasn't given out much details about the clean command.So is there any command for cleaning the project?
Thanks
Go to the simulator directory. There would be a clean.bat file. Run it. It is a bit slow, but does its work.