Windows builds are here! 🔥 #278
Replies: 18 comments 18 replies
-
You're awesome. |
Beta Was this translation helpful? Give feedback.
-
Couple other little bits I forgot to mention:
|
Beta Was this translation helpful? Give feedback.
-
Nice work, keep it up!🚀 |
Beta Was this translation helpful? Give feedback.
-
Great job, congratulations. I have a question about this support for Windows, now it supports deep links for Windows |
Beta Was this translation helpful? Give feedback.
-
This is very cool, I wanted to give this a try but I was only on windows, happy to finally be able to give it a try! what development stage is it in currently? is it still in alpha like it was in the past? |
Beta Was this translation helpful? Give feedback.
-
Thank you so much ♥ |
Beta Was this translation helpful? Give feedback.
-
great innovation and never give up... |
Beta Was this translation helpful? Give feedback.
-
I am waiting for android and ios. |
Beta Was this translation helpful? Give feedback.
-
Thanks, I've been waiting for this for months. :c |
Beta Was this translation helpful? Give feedback.
-
This project looks pretty promising, keep it up @simonhamp ! |
Beta Was this translation helpful? Give feedback.
-
Really great, we really needed something like this. |
Beta Was this translation helpful? Give feedback.
-
is there anyway using central database for multiple users so they can work on single database |
Beta Was this translation helpful? Give feedback.
-
When will we get Andoid and IOS Supports? |
Beta Was this translation helpful? Give feedback.
-
Current means alpha or beta?
…On Thu, 15 Aug, 2024, 4:19 PM Simon Hamp, ***@***.***> wrote:
The current builds *already* support Android (which is just a flavour of
Linux) and iOS (which is a variant of the same core as macOS) 🙂
—
Reply to this email directly, view it on GitHub
<#278 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQO6CRF23ZGQ752HM7GALOLZRSBT5AVCNFSM6AAAAABHBO4TT2VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTAMZUGYZTKMI>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Oh.. So we can expect that in maybe the next version?
…On Fri, Aug 16, 2024 at 2:50 PM Simon Hamp ***@***.***> wrote:
Full support for *building* mobile applications isn't available in
NativePHP, but this thread is about Windows builds of the *PHP* binaries.
Mobile support isn't part of NativePHP yet and likely won't be for v1.
—
Reply to this email directly, view it on GitHub
<#278 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQO6CRELRTDHEOVO7OCP3NDZRW77NAVCNFSM6AAAAABHBO4TT2VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTAMZVGY3TEMI>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Can I work it on Ubuntu |
Beta Was this translation helpful? Give feedback.
-
Thank you for this great technology. It really makes it easy to develop a desktop application for Web Developers. I only want to give a feedback on database part. When I seed some data to the database in development and after building and packaging the application the database then does not have the seeded data in built application. |
Beta Was this translation helpful? Give feedback.
-
@simonhamp Great work. but its not working correctly on windows. Many people have pointed it. when we hit php artisan native:build win then nothing happens. |
Beta Was this translation helpful? Give feedback.
-
Following on from #271, I'm thrilled to be able to announce that...
Gimme gimme!
The easiest path to upgrade is to run
composer require nativephp/electron
in your app. This will grab the latest version of all the key dependencies.If you bump into any problems, please raise an issue - but please: check to see if the same issue has already been reported!
Windows support
With
nativephp/electron
v0.6.0 (and a minor fix innativephp/electron
v0.6.1), plus the changes innativephp/php-bin
v0.4.0, Windows support has finally arrived.I know many of you have been patiently waiting for this. Over the months, we've racked up quite a few issues as folks have attempted to find some way to get Windows builds working.
I totally get this enthusiasm, Windows support was always on the cards, but we stated early on that Windows support was going to take a while longer for one main reason: a lack of static builds of PHP for Windows with enough extensions baked in to support booting a Laravel application.
Believe me, this wasn't by choice. If we could have launched NativePHP with Windows support, we would have.
Why did it take so long? This is just something that no one has tackled before, until now. And it's not a particularly easy problem to solve.
I don't know if I'm more excited that we have Windows builds or that I was able to go through over half the open tickets and give people some good news.
It's largely thanks to @crazywhalecc and a flock of contributors who have all been working hard on the awesome
static-php-cli
project. Their efforts have really paid off. Please go and show them some support!With that project making the 'building PHP' part easy, I was able to shift attention to making builds of your Electron apps work on Windows. This required some patching and fixing up and a lot of testing, but builds are working reliably enough for the alpha for me to be happy to try and move onto the next thing.
It did also push me to work through many of the tickets and PRs and I finally feel like I'm getting on top of that now.
Thanks for your patience everyone 😊
PHP versions aplenty
The other important piece here is wider support for multiple versions of PHP. This has become increasingly important as more and more of you are moving up from PHP 8.1.
Importantly, this enables full Laravel 11 support as you can now use PHP 8.2 or 8.3 to develop your applications.
I want NativePHP to make building distributable, desktop-calibre software using PHP a breeze, but there will always be some complexity here.
You see, the version of PHP you use to develop your application is the version that you should ship with your application. If they're not the same, you will get warnings from Composer and potential bugs in your application.
The good news is that you now have complete choice between PHP 8.1, 8.2 and 8.3 and you don't need to configure anything to make it work; whatever minor version of PHP you develop with, NativePHP will bundle that same minor version when building your apps.
So if you're building an app on your computer with PHP 8.3.3, NativePHP will select the PHP 8.3 binaries (currently on 8.3.6) to ship when building your app.
Updates to the NativePHP binaries will also happen more regularly.
A note on
php-bin
The
php-bin
package houses the "official" builds of PHP that NativePHP supports. If you choose to build your own statically-compiled versions of PHP to ship with your apps and need a hand, you will need to pay for support.The
php-bin
repo will not be accepting PRs containing PHP binaries. This is out of precaution for the safety of our ecosystem, as we don't have the time and resources to verify the safety and authenticity of such third-party builds.As we start to move throught the final stages of the alpha towards the beta and general availability stages of NativePHP, we'll also be doing more work to help you verify the safety of the builds we provide. This will be for your benefit and that of your users.
Long term, I don't think we'll be shipping the PHP binaries via this Composer package, as with at least 12 different binaries now bundled in, this one package is becoming a bit of a beast: even zipped, it'll consume over 80MBs of disk space on each app in development.
Of course, when you build your app for distribution only a single one of these binaries is ever embedded inside. Unzipped, they're approx. 25MBs each.
During these early phases of NativePHP's life, this package will suffice, but I expect we'll need to move on from it at some point.
Super sponsors
While you're here, I want to take this opportunity to say another massive thanks to our sponsors. You've enabled me to spend this time bringing these advancements to everyone. 🙏
But there's still a long long way to go. As I said back in January, I'm determined that we get NativePHP into a production-ready state in 2024. While I'm a little bit behind on my rather ambitious "next few weeks" for some of the things mentioned there, I believe we still have plenty of time.
Can you help bring NativePHP to life a little sooner? Please consider sponsoring - it doesn't need to be monthly!
And if you need consultancy or just want some faster support, my sponsorship tiers are a great way for you to get some hands-on help from one of the maintainers of NativePHP!
Thanks for coming along for the ride. Please give the latest version of NativePHP a go and report any issues you find.
Once the dust has settled on this release, I will be firing up Tauri again and should start to have some updates for sponsors to try out very soon.
¡Vamos!
Beta Was this translation helpful? Give feedback.
All reactions