Today marks the release of [Wails](https://wails.io) v2. It's been about 18 months since the first v2 alpha and about a year from the first beta release. I'm truly grateful to everyone involved in the evolution of the project.
@ -26,11 +26,11 @@ Part of the reason it took that long was due to wanting to get to some definitio
This release is more than I'd ever expected it to be. I hope it gives you as much pleasure as it has given us to develop it.
# What _is_ Wails?
# Qu'est-ce Wails?
If you are unfamiliar with Wails, it is a project that enables Go programmers to provide rich frontends for their Go programs using familiar web technologies. It's a lightweight, Go alternative to Electron. Much more information can be found on the [official site](https://wails.io/docs/introduction).
# What's new?
# Quelles sont les nouveautés?
The v2 release is a huge leap forward for the project, addressing many of the pain points of v1. If you have not read any of the blog posts on the Beta releases for [macOS](/blog/wails-v2-beta-for-mac), [Windows](/blog/wails-v2-beta-for-windows) or [Linux](/blog/wails-v2-beta-for-linux), then I encourage you to do so as it covers all the major changes in more detail. In summary:
@ -49,7 +49,7 @@ The v2 release is a huge leap forward for the project, addressing many of the pa
- No extra libraries or DLLs are required to be shipped with your application. For any platform.
- No requirement to bundle frontend assets. Just develop your application like any other web application.
# Credit & Thanks
# Crédits & Remerciements
Getting to v2 has been a huge effort. There have been ~2.2K commits by 89 contributors between the initial alpha and the release today, and many, many more that have provided translations, testing, feedback and help on the discussion forums as well as the issue tracker. I'm so unbelievably grateful to each one of you. I'd also like to give an extra special thank you to all the project sponsors who have provided guidance, advice and feedback. Everything you do is hugely appreciated.
@ -61,23 +61,23 @@ I'd also like to give a huge shout-out to [@misitebao](https://github.com/misite
Last, but not least, a huge thank you to Mat Ryer who has provided advice and support during the development of v2. Writing xBar together using an early Alpha of v2 was helpful in shaping the direction of v2, as well as give me an understanding of some design flaws in the early releases. I'm happy to announce that as of today, we will start to port xBar to Wails v2, and it will become the flagship application for the project. Cheers Mat!
# Lessons Learnt
# Leçons apprises
There are a number of lessons learnt in getting to v2 that will shape development moving forward.
## Smaller, Quicker, Focused Releases
## Des versions plus petites, plus rapides et ciblées
In the course of developing v2, there were many features and bug fixes that were developed on an ad-hoc basis. This led to longer release cycles and were harder to debug. Moving forward, we are going to create releases more often that will include a reduced number of features. A release will involve updates to documentation as well as thorough testing. Hopefully, these smaller, quicker, focussed releases will lead to fewer regressions and better quality documentation.
## Encourage Engagement
## Encourager l'engagement
When starting this project, I wanted to immediately help everyone who had a problem. Issues were "personal" and I wanted them resolved as quickly as possible. This is unsustainable and ultimately works against the longevity of the project. Moving forward, I will be giving more space for people to get involved in answering questions and triaging issues. It would be good to get some tooling to help with this so if you have any suggestions, please join in the discussion [here](https://github.com/wailsapp/wails/discussions/1855).
## Learning to say No
## Apprendre à dire non
The more people that engage with an Open Source project, the more requests there will be for additional features that may or may not be useful to the majority of people. These features will take an initial amount of time to develop and debug, and incur an ongoing maintenance cost from that point on. I myself am the most guilty of this, often wanting to "boil the sea" rather than provide the minimum viable feature. Moving forward, we will need to say "No" a bit more to adding core features and focus our energies on a way to empower developers to provide that functionality themselves. We are looking seriously into plugins for this scenario. This will allow anyone to extend the project as they see fit, as well as providing an easy way to contribute towards the project.
# Looking to the Future
# Un regard tourné vers l'avenir
There are so many core features we are looking at to add to Wails in the next major development cycle already. The [roadmap](https://github.com/wailsapp/wails/discussions/1484) is full of interesting ideas, and I'm keen to start work on them. One of the big asks has been for multiple window support. It's a tricky one and to do it right, and we may need to look at providing an alternative API, as the current one was not designed with this in mind. Based on some preliminary ideas and feedback, I think you'll like where we're looking to go with it.
@ -85,7 +85,7 @@ I'm personally very excited at the prospect of getting Wails apps running on mob
A final point I'd like to raise is that of feature parity. It has long been a core principle that we wouldn't add anything to the project without there being full cross-platform support for it. Whilst this has proven to be (mainly) achievable so far, it has really held the project back in releasing new features. Moving forward, we will be adopting a slightly different approach: any new feature that cannot be immediately released for all platforms will be released under an experimental configuration or API. This allows early adopters on certain platforms to try the feature and provide feedback that will feed into the final design of the feature. This, of course, means that there are no guarantees of API stability until it is fully supported by all the platforms it can be supported on, but at least it will unblock development.
# Final Words
# Derniers Mots
I'm really proud of what we've been able to achieve with the V2 release. It's amazing to see what people have already been able to build using the beta releases so far. Quality applications like [Varly](https://varly.app/), [Surge](https://getsurge.io/) and [October](https://october.utf9k.net/). I encourage you to check them out.
| Type | The type of message dialog, eg question, info... | ✅ | ✅ | ✅ |
| Title | Title for the dialog | ✅ | ✅ | ✅ |
@ -282,7 +282,7 @@ Linux allows you to use multiple file filters in dialog boxes. Each FileFilter w
Mac dialogs only have the concept of a single set of patterns to filter files. If multiple FileFilters are provided, Wails will use all the Patterns defined.
This tutorial has been kindly provided by [@tatadan](https://twitter.com/tatadan) and forms part of their [Wails Examples Repository](https://github.com/tataDan/wails-v2-examples).
Ce tutoriel a été gracieusement fourni par [@tatadan](https://twitter.com/tatadan) et fait partie de leur [dépôt d'exemples Wails](https://github.com/tataDan/wails-v2-examples).
:::
In this tutorial we are going to develop an application that retrieves photos of dogs from the web and then displays them.
Dans ce tutoriel, nous allons développer une application qui récupère des photos de chiens du web et les affiche.
### Create the project
### Créer le projet
Let's create the application. From a terminal enter: `wails init -n dogs-api -t svelte`
Créons l'application. Depuis un terminal saisissez : `wails init -n dogs-api -t svelte`
Note: We could optionally add `-ide vscode` or `-ide goland` to the end of this command if you wanted to add IDE support.
Note: Nous pouvons ajouter l'une des options suivantes `-ide vscode` ou `-ide goland` à la fin de la commande si vous voulez ajouter le support d'un IDE.
Now let's `cd dogs-api` and start editing the project files.
Maintenant, exécutons `cd dogs-api` et commençons à éditer les fichiers du projet.
### Remove unused code
### Retirer le code inutilisé
We will start by removing some elements that we know we will not use:
Nous allons commencer par supprimer certains éléments que nous savons que nous n'utiliserons pas :
- Open `app.go` and remove the following lines:
- Ouvrez `app.go` et supprimez les lignes suivantes :
@ -16,54 +16,54 @@ Le format est basé sur [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
### Ajouts
- Ajout de l'option `OpenInspectorOnStartup` au débogage pour permettre d'ouvrir le WebInspector au démarrage de l'application en mode débogage . Ajouté par @stffabi : [PR](https://github.com/wailsapp/wails/pull/2080)
- Sur MacOS, `wails doctor` affiche à présent la version de Xcode installée. Ajouté par @stffabi : [PR](https://github.com/wailsapp/wails/pull/2089)
- The [AssetServer](/docs/reference/options#assetserver) now supports handling range-requests if the [Assets](/docs/reference/options/#assets-1) `fs.FS` provides an `io.ReadSeeker`. Ajouté par @stffabi : [PR](https://github.com/wailsapp/wails/pull/2091)
- L'[AssetServer](/docs/reference/options#assetserver) supporte à présent les range-requests si l' [Assets](/docs/reference/options/#assets-1) `fs.FS` importe `io.ReadSeeker`. Ajouté par @stffabi : [PR](https://github.com/wailsapp/wails/pull/2091)
### Corrections
- The `noreload` flag in wails dev wasn't applied. Fixed by @stffabi in this [PR](https://github.com/wailsapp/wails/pull/2081)
- `build/bin` folder was duplicating itself on each reload in `wails dev` mode. Fixed by @OlegGulevskyy in this [PR](https://github.com/wailsapp/wails/pull/2103)
- Le booléen activant la fonctionnalité `noreload` n'était pas utilisable dans le mode développement de wails. Corrigé par @stffabi dans cette [PR](https://github.com/wailsapp/wails/pull/2081)
- Le dossier `build/bin` se dupliquait lui-même lors de chaque chargement en mode `développement de wails`. Corrigé par @OlegGulevskyy dans cette [PR](https://github.com/wailsapp/wails/pull/2103)
## v2.2.0 - 2022-11-09
### Ajouts
- Wails now uses a purpose built, native Go implementation of Microsoft's webview2loader dll. This means there is no need to embed the `Webview2Loader.dll` file in your binaries, meaning filesizes will be ~130k smaller! Thanks to @stffabi for this [awesome contribution](https://github.com/wailsapp/wails/pull/1974)!
- This release provides much more control over custom asset handling via the new [AssetServer](https://wails.io/docs/reference/options#assetserver) options. This allows you to provide your own custom asset handler and hook into the request chain through middleware. Thanks to @stffabi for this [awesome contribution](https://github.com/wailsapp/wails/pull/2016) and @mholt for the [initial idea](https://github.com/wailsapp/wails/issues/2007) and extensive testing.
- It is now possible to customise the layout of your Wails projects using 2 new options in `wails.json`:
- `build:dir` can be used to specify where the build files reside
- `frontend:dir` can be used to specify where the frontend files reside
- If `go.mod` is not found in the same directory as `wails.json`, the cli will look up the parent directories to find it. Fixed by @leaanthony in this [PR](https://github.com/wailsapp/wails/pull/2009)
- Colour output in the CLI can now be turned off by using the `--nocolor` flag. This is useful for CI/CD pipelines. Thanks to @scottopell for the [PR](https://github.com/wailsapp/wails/pull/1947)
- A JSON schema definition for the `wails.json` file has been added. IDEs should now provide code complete when editing `wails.json`. Thanks to @binyamin for the [PR](https://github.com/wailsapp/wails/pull/1864)
- The `EventsOn*` methods now return a function that can be called to deregister the listener. Thanks to @joshbuddy for the [PR](https://github.com/wailsapp/wails/pull/1969)
- Wails utilise maintenant une implémentation native du dll de webview2loader de Microsoft. Cela signifie qu'il n'y a pas besoin d'intégrer le fichier `Webview2Loader.dll` dans vos binaires, ce qui signifie que vos fichiers seront ~130k plus petits! Merci à @stffabi pour cette [géniale contribution](https://github.com/wailsapp/wails/pull/1974)!
- Cette version fournit beaucoup plus de contrôle sur la gestion des assets via les nouvelles options [AssetServer](https://wails.io/docs/reference/options#assetserver). Cela vous permet de fournir votre propre gestionnaire d'assets et de le lier dans la chaîne de requête par le biais du middleware. Merci à @stffabi pour cette [contribution géniale](https://github.com/wailsapp/wails/pull/2016) et @mholt pour la [idée initiale](https://github.com/wailsapp/wails/issues/2007) et les tests complets.
- Il est maintenant possible de personnaliser la mise en page de vos projets Wails en utilisant 2 nouvelles options dans `wails.json`:
- `build:dir` peut être utilisé pour spécifier où résident les fichiers de compilation
- `frontend:dir` peut être utilisé pour spécifier où résident les fichiers du frontend
- Si `go.mod` n'est pas trouvé dans le même répertoire que `wails.json`, le cli va chercher les répertoires parents pour le trouver. Corrigé par @leaanthony dans cette [PR](https://github.com/wailsapp/wails/pull/2009)
- La sortie de couleur dans le CLI peut maintenant être désactivée en utilisant l'option `--nocolor`. Ceci est utile pour les pipelines CI/CD. Merci à @scottopell pour cette [PR](https://github.com/wailsapp/wails/pull/1947)
- Une définition de schéma JSON pour le fichier `wails.json` a été ajoutée. Les IDEs devraient maintenant fournir le code complet lors de l'édition de `wails.json`. Merci à @binyamin pour cette [PR](https://github.com/wailsapp/wails/pull/1864)
- Les méthodes `EventsOn*` retournent maintenant une fonction qui peut être appelée pour désenregistrer l'auditeur. Thanks to @joshbuddy for the [PR](https://github.com/wailsapp/wails/pull/1969)
### Corrections
- Webview2 on Windows returns a potential whitespace when defining the style like this style="--wails-draggable: drag". Fixed by @stffabi in https://github.com/wailsapp/wails/pull/1989
- Bound structs that had `struct{}` field types would cause the Typescript generation to fail. Thanks to @ParkourLiu for the [PR](https://github.com/wailsapp/wails/pull/1999)
- When maximising a frameless window on Windows with multiple monitors, the window could sometimes become blank. Thanks to @stffabi for the [fix](https://github.com/wailsapp/wails/pull/2043)
- When maximising a frameless window on Windows with multiple monitors, the window could sometimes become blank. Merci à @stffabi pour cette [correction](https://github.com/wailsapp/wails/pull/2043)
### Changements
- The troubleshooting guide was updated to provide guidance when [Vite fails to start](https://wails.io/docs/guides/troubleshooting#cannot-start-service-host-version-xxx-does-not-match-binary-version-xxx). Thanks to @willdot for the [PR](https://github.com/wailsapp/wails/pull/2000).
- English, Chinese and Japanese documentation updates. Thanks to @misitebao.
- Le guide de dépannage a été mis à jour pour fournir des conseils lorsque [Vite ne démarre pas](https://wails.io/docs/guides/troubleshooting#cannot-start-service-host-version-xxx-does-not-match-binary-version-xxx). Merci à @willdot pour cette [correction](https://github.com/wailsapp/wails/pull/2000).
- Mises à jour de la documentation anglaise, chinoise et japonaise. Merci à @misitebao.
### Déprécié
- The [AssetsHandler](https://wails.io/docs/reference/options#assetshandler) option has been deprecated. Please use the [AssetServer](https://wails.io/docs/reference/options#assetserver) option instead.
- L'option [AssetsHandler](https://wails.io/docs/reference/options#assetshandler) a été dépréciée. Veuillez utiliser l'option [AssetServer](https://wails.io/docs/reference/options#assetserver) à la place.
### New Contributors
### Nouveaux Contributeurs
- @willdot made their first contribution in https://github.com/wailsapp/wails/pull/2000
- @ParkourLiu made their first contribution in https://github.com/wailsapp/wails/pull/1999
- @binyamin made their first contribution in https://github.com/wailsapp/wails/pull/1864
- @joshbuddy made their first contribution in https://github.com/wailsapp/wails/pull/1969
- @sgosiaco made their first contribution in https://github.com/wailsapp/wails/pull/2062
- @willdot a fait sa première contribution sur https://github.com/wailsapp/wails/pull/2000
- @ParkourLiu a fait sa première contribution sur https://github.com/wailsapp/wails/pull/1999
- @binyamin a fait leur première contribution sur https://github.com/wailsapp/wails/pull/1864
- @joshbuddy a fait sa première contribution sur https://github.com/wailsapp/wails/pull/1969
- @sgosiaco a fait sa première contribution sur https://github.com/wailsapp/wails/pull/2062
## v2.1.0 - 2022-10-18
### Retraits
- The `RGBA` option in `options.App` has now been removed. Use `BackgroundColour` instead.
- L'option `RGBA` dans `options.App` a été retirée. Utilisez `BackgroundColour` à la place.
### Ajouts
@ -90,12 +90,12 @@ Le format est basé sur [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
### Changements
- Add PR checks - @leaanthony in https://github.com/wailsapp/wails/pull/1879
- Auto label project cards - @leaanthony in https://github.com/wailsapp/wails/pull/1881
- Add issue translator - @leaanthony in https://github.com/wailsapp/wails/pull/1891
- Update label names in the issue template - @misitebao in https://github.com/wailsapp/wails/pull/1893
- obfuscated instead of obfuscate in the docs - @arifali123 in https://github.com/wailsapp/wails/pull/1895
- [assetHandler] Remove redundant log prefix - @stffabi in https://github.com/wailsapp/wails/pull/1896
- Ajouter de vérifications de PR - @leaanthony dans https://github.com/wailsapp/wails/pull/1879
- Ajout automatique de labels de projets - @leaanthony dans https://github.com/wailsapp/wails/pull/1881
- Ajout du traducteur de bugs - @leaanthony dans https://github.com/wailsapp/wails/pull/1891
- Mise à jour des labels dans le template de bug - @misitebao dans https://github.com/wailsapp/wails/pull/1893
- "obfuscated" à la place de "obfuscate" dans la documentation - @arifali123 in https://github.com/wailsapp/wails/pull/1895
- [assetHandler] Supprimer le préfixe de log redondant - @stffabi dans https://github.com/wailsapp/wails/pull/1896
- [dev] Do not generate bindings in the dev app itself - @stffabi in https://github.com/wailsapp/wails/pull/1899
- Update Chinese translation - @almas1992 in https://github.com/wailsapp/wails/pull/1894
- Refactor app - @leaanthony in https://github.com/wailsapp/wails/pull/1909
@ -113,15 +113,15 @@ Le format est basé sur [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
### Nouveaux Contributeurs
- @arifali123 made their first contribution in https://github.com/wailsapp/wails/pull/1895
- @almas1992 made their first contribution in https://github.com/wailsapp/wails/pull/1894
- @JulioDRF made their first contribution in https://github.com/wailsapp/wails/pull/1902
- @hotafrika made their first contribution in https://github.com/wailsapp/wails/pull/1930
- @scottopell made their first contribution in https://github.com/wailsapp/wails/pull/1946
- @o8x made their first contribution in https://github.com/wailsapp/wails/pull/1949
- @rnice01 made their first contribution in https://github.com/wailsapp/wails/pull/1939
- @cuigege made their first contribution in https://github.com/wailsapp/wails/pull/1979
- @lyon-lee-dev made their first contribution in https://github.com/wailsapp/wails/pull/1976
- @arifali123 a fait sa première contribution sur https://github.com/wailsapp/wails/pull/1895
- @almas1992 a fait sa première contribution sur https://github.com/wailsapp/wails/pull/1894
- @JulioDRF a fait sa première contribution sur https://github.com/wailsapp/wails/pull/1902
- @hotafrika a fait sa première contribution sur https://github.com/wailsapp/wails/pull/1930
- @scottopell a fait sa première contribution sur https://github.com/wailsapp/wails/pull/1946
- @o8x a fait sa première contribution sur https://github.com/wailsapp/wails/pull/1949
- @rnice01 a fait sa première contribution sur https://github.com/wailsapp/wails/pull/1939
- @cuigege a fait sa première contribution sur https://github.com/wailsapp/wails/pull/1979
- @lyon-lee-dev a fait sa première contribution sur https://github.com/wailsapp/wails/pull/1976
## v2.0.0 - 2022-09-22
@ -132,16 +132,16 @@ Le format est basé sur [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
### Changements
- Bump minimum required Go version to 1.18 by @stffabi in https://github.com/wailsapp/wails/pull/1854
- Add check for minimum required Go version by @stffabi in https://github.com/wailsapp/wails/pull/1853
- chore: update README and workflows by @misitebao in https://github.com/wailsapp/wails/pull/1848
- Update introduction.mdx by @ParvinEyvazov in https://github.com/wailsapp/wails/pull/1863
- Releasetest/release workflow by @leaanthony in https://github.com/wailsapp/wails/pull/1869
- Optimize documentation website by @misitebao in https://github.com/wailsapp/wails/pull/1849
- Remonter la version minimale requise pour la version de Go vers 1.18 par @stffabi dans https://github.com/wailsapp/wails/pull/1854
- Ajout d'une vérification sur la version minimale requise de Go par @stffabi dans https://github.com/wailsapp/wails/pull/1853
- corvée: Mettre à jour le README et les processus de développement par @misitebao dans https://github.com/wailsapp/wails/pull/1848
- Mise à jour du fichier introduction.mdx par @ParvinEyvazov sur https://github.com/wailsapp/wails/pull/1863
- Ajout d'un github workflow pour la publication d'une nouvelle version et de l'exécution des tests dessus, par @leaanthony dans https://github.com/wailsapp/wails/pull/1869
- Optimisation du site de documentation par @misitebao dans https://github.com/wailsapp/wails/pull/1849
### New Contributors
### Nouveaux Contributeurs
- @ParvinEyvazov made their first contribution in https://github.com/wailsapp/wails/pull/1863
- @ParvinEyvazov a fait leur première contribution sur https://github.com/wailsapp/wails/pull/1863
## v2.0.0-rc.1 - 2022-09-13
@ -176,25 +176,25 @@ Le format est basé sur [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
- Change contribution guide type from "doc" to "page" by @misitebao in https://github.com/wailsapp/wails/pull/1777
- feat(website): repair document content by @misitebao in https://github.com/wailsapp/wails/pull/1775
- chore: sort out files by @misitebao in https://github.com/wailsapp/wails/pull/1776
- Add Korean to doc by @jaesung9507 in https://github.com/wailsapp/wails/pull/1774
- Add README.ja.md by @shinshin86 in https://github.com/wailsapp/wails/pull/1783
- Reorganized contribution guidelines page by @misitebao in https://github.com/wailsapp/wails/pull/1784
- fix(website): fix link by @misitebao in https://github.com/wailsapp/wails/pull/1785
- Update templates.mdx by @KiddoV in https://github.com/wailsapp/wails/pull/1799
- Ajout du coréen dans la documentation par @jaesung9507 dans https://github.com/wailsapp/wails/pull/1774
- Ajout README.ja.md par @shinshin86 dans https://github.com/wailsapp/wails/pull/1783
- Réorganisation de la page des lignes directrices de contribution par @misitebao sur https://github.com/wailsapp/wails/pull/1784
- fix(site web): correction du lien par @misitebao dans https://github.com/wailsapp/wails/pull/1785
- Mise à jour du fichier templates.mdx par @KiddoV sur https://github.com/wailsapp/wails/pull/1799
- Better watcher by @leaanthony in https://github.com/wailsapp/wails/pull/1827
- Only set GDK_BACKEND to "x11" if GDK_BACKEND is unset and XDG_SESSION_TYPE is not "wayland" by @prurigro in https://github.com/wailsapp/wails/pull/1811
- Optimize images by @imgbot in https://github.com/wailsapp/wails/pull/1812
### New Contributors
### Nouveaux Contributeurs
- @shinshin86 made their first contribution in https://github.com/wailsapp/wails/pull/1783
- @Debdut made their first contribution in https://github.com/wailsapp/wails/pull/1781
- @KiddoV made their first contribution in https://github.com/wailsapp/wails/pull/1799
- @zandercodes made their first contribution in https://github.com/wailsapp/wails/pull/1349
- @prurigro made their first contribution in https://github.com/wailsapp/wails/pull/1811
- @SheetJSDev made their first contribution in https://github.com/wailsapp/wails/pull/1821
- @AlbinoDrought made their first contribution in https://github.com/wailsapp/wails/pull/1832
- @imgbot made their first contribution in https://github.com/wailsapp/wails/pull/1812
- @shinshin86 a fait sa première contribution sur https://github.com/wailsapp/wails/pull/1783
- @Debdut a fait sa première contribution sur https://github.com/wailsapp/wails/pull/1781
- @KiddoV a fait sa première contribution sur https://github.com/wailsapp/wails/pull/1799
- @zandercodes a fait sa première contribution sur https://github.com/wailsapp/wails/pull/1349
- @prurigro a fait sa première contribution sur https://github.com/wailsapp/wails/pull/1811
- @SheetJSDev a fait sa première contribution sur https://github.com/wailsapp/wails/pull/1821
- @AlbinoDrought a fait sa première contribution sur https://github.com/wailsapp/wails/pull/1832
- @imgbot a fait sa première contribution sur https://github.com/wailsapp/wails/pull/1812
- The `Fullscreen` application option is deprecated. Please use [`WindowStartState`](https://wails.io/docs/reference/options#windowstartstate) instead.
- L'option `Fullscreen` de l'application est dépréciée. Veuillez utiliser [`WindowStartState`](https://wails.io/docs/reference/options#windowstartstate) à la place.
### New Contributors
### Nouveaux Contributeurs
- @MyNameIsAres made their first contribution in https://github.com/wailsapp/wails/pull/1636
- @MyNameIsAres a fait sa première contribution sur https://github.com/wailsapp/wails/pull/1636
## v2.0.0-beta.39.2 - 2022-07-20
### Ajouts
- Update example for macOS Menu by @acheong08 in https://github.com/wailsapp/wails/pull/1600
- Mise à jour de l'exemple pour le menu macOS par @acheong08 sur https://github.com/wailsapp/wails/pull/1600
### Corrections
- Reinstate Go 1.17 compatibility by @leaanthony in https://github.com/wailsapp/wails/pull/1605
- Rétablir la compatibilité de Go 1.17 par @leaanthony dans https://github.com/wailsapp/wails/pull/1605
@ -22,18 +22,19 @@ These settings may be persisted in your [project config](../reference/project-co
:::note
Чтобы убедиться, что ваше приложение будет работать в режиме обфускации, используйте сгенерированные в папке </code>wailsjs` привязки.</p>
Чтобы убедиться, что ваше приложение будет работать в режиме обфускации, используйте сгенерированные в папке `wailsjs` привязки.
<p spaces-before="0">::: </p>
:::
<h2 spaces-before="0">Пример</h2>
## Пример
<p spaces-before="0">Импортирование метода "Greet" из биндинга:</p>
Импортирование метода "Greet" из биндинга:
<pre><code class="js">import { Greet } from "../../wailsjs/go/main/App";
```js
import { Greet } from "../../wailsjs/go/main/App";
// snip
Greet("World");
`</pre>
```
обеспечит корректную работу с включенным режимом обфускации, так как привязки будут сгенерированы заново, используя новый механизм вызова метода по ID.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.