mirror of
https://github.com/wavetermdev/wails.git
synced 2026-04-22 15:26:15 -07:00
Compare commits
673 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| a11655c452 | |||
| 11cbfb68f1 | |||
| 7a63464997 | |||
| bf2d83d939 | |||
| 1cd31573a9 | |||
| 39cebffa87 | |||
| f4b4e4cdb8 | |||
| 73f5cc3b92 | |||
| c48ad9be67 | |||
| 4726b72708 | |||
| 4c312b155d | |||
| cd35536a79 | |||
| 91d6c23c71 | |||
| 59f84b8905 | |||
| a1a06a6198 | |||
| 5292721517 | |||
| 41d1bf3d10 | |||
| 3e42d2da05 | |||
| 7141c972fd | |||
| 7cc3652a39 | |||
| 95082336cd | |||
| b2cec41fbf | |||
| 66f79c2e51 | |||
| f8e6fa4bf3 | |||
| d9888ce6af | |||
| 0531645377 | |||
| c22f59adb9 | |||
| 2065600096 | |||
| c61ce1e2de | |||
| 16581ceff9 | |||
| beb909fc0f | |||
| 5cddf8864e | |||
| e504d1124a | |||
| 91afa396ba | |||
| 08eee061ab | |||
| 072929689c | |||
| 72d019cb48 | |||
| 91ed594049 | |||
| 4493a05fb9 | |||
| f8eac34212 | |||
| 1687906376 | |||
| 381909696b | |||
| c477100374 | |||
| cb169611b1 | |||
| 4dd1be5252 | |||
| a7f1ea21ef | |||
| e4f2bfe699 | |||
| 9bd765d2c8 | |||
| d77c556c4e | |||
| 9a01c757bd | |||
| 41051e8848 | |||
| 884773a218 | |||
| 1e54eb2eaf | |||
| cb4ba5bca6 | |||
| 664f6a952c | |||
| fe341741b5 | |||
| cd162918d4 | |||
| 6a07cbd505 | |||
| 614f50d5d3 | |||
| f292e221f1 | |||
| 2a0673f99f | |||
| 794a8ce19f | |||
| f6425a64a6 | |||
| b49dce8676 | |||
| 6a88568f0a | |||
| a10a9e5b36 | |||
| e7f9e2f267 | |||
| 316a24f6da | |||
| c874e30339 | |||
| 043d83e39e | |||
| 7e64038265 | |||
| d4ecaad0e1 | |||
| 953bc09343 | |||
| 935f6871ab | |||
| 0d793124fd | |||
| c97e1c50af | |||
| 319d59296e | |||
| 35b1dfdd2a | |||
| 368733b7cc | |||
| e705c20de9 | |||
| ae25b38f9e | |||
| ec2202765c | |||
| e0e55e6e76 | |||
| 4d5f31ab84 | |||
| b84fd76e86 | |||
| 55115742c1 | |||
| f2f8ed2e99 | |||
| d59bec171e | |||
| bff0ece017 | |||
| 7c0d1019f2 | |||
| ee5ca1a84a | |||
| a3de4577dd | |||
| 4986f9cea5 | |||
| 0f2fc1ab7a | |||
| 5f612301f9 | |||
| 84b6273baf | |||
| 1947a9a17a | |||
| 9c8a3a62da | |||
| 6224d3aa82 | |||
| 2d66d2146a | |||
| e5cc18cfc5 | |||
| 13fb5352d8 | |||
| 531d7cfb62 | |||
| 58b6e4c335 | |||
| ae0933c82a | |||
| c1d4aeb3cd | |||
| 9c7ef2d47c | |||
| 490388ae8f | |||
| fac2a8ba3c | |||
| 912d7cf34b | |||
| 848ea88207 | |||
| 1830c64c79 | |||
| ee50170374 | |||
| 3f82ceabba | |||
| 22d3f93b52 | |||
| d9120181b7 | |||
| 0a9ae0dff3 | |||
| 3dbe2a0942 | |||
| ac81d5aa3d | |||
| 2e1f758f20 | |||
| 41f9c07c88 | |||
| a8357a2459 | |||
| bd344bf32c | |||
| ded28cf9c2 | |||
| e7aa74905a | |||
| 781a0df72e | |||
| 8aaa0e0d9d | |||
| ef8dc44317 | |||
| 524411964f | |||
| 75ee36f8eb | |||
| 7f3f56663f | |||
| f6257d3d31 | |||
| 2e3c90c096 | |||
| 4e9eda8e1f | |||
| 02fcf738d3 | |||
| 053f2748d5 | |||
| ad6a7d5a8c | |||
| 93defccf4d | |||
| 5ffc815d34 | |||
| 4e03c84fbb | |||
| 7fbae0d333 | |||
| 82806d47b3 | |||
| cb2de2ad30 | |||
| 6d09a45a30 | |||
| 3fbe4f71c4 | |||
| 56206729ef | |||
| c70d93b482 | |||
| 5f596c7679 | |||
| ebf4cf13f2 | |||
| f08176079c | |||
| 65a97a668e | |||
| 0c244b1ce4 | |||
| 3b85c75359 | |||
| c3a98b058e | |||
| b94db409dd | |||
| 43f8a1f773 | |||
| dce5fd442f | |||
| f21c9ba880 | |||
| 55855ccc4d | |||
| eb97f53124 | |||
| f192cbd01b | |||
| 625eca27f6 | |||
| a65a40fb4c | |||
| 2465538448 | |||
| bb2da2f810 | |||
| 6b38f0c68e | |||
| 95b70de01f | |||
| 78c6705cc3 | |||
| 8bb3af2282 | |||
| 2c8d94ca48 | |||
| d5a8ee0132 | |||
| 55cec7af17 | |||
| 90fc96b494 | |||
| 8e8b88ef48 | |||
| 4a20655b29 | |||
| 4721949657 | |||
| d119fce3c3 | |||
| f6cdafa5ff | |||
| 7af39e4819 | |||
| 073f8202e5 | |||
| 8f860c9ea6 | |||
| f734d26adb | |||
| 7dd3f96915 | |||
| 584f88f727 | |||
| 2376062008 | |||
| 5ead563989 | |||
| f55f965b3d | |||
| a22383df07 | |||
| 65fb42d9e7 | |||
| 4cedfdc091 | |||
| 085d59612b | |||
| d8bcf7ac70 | |||
| ec31d49b59 | |||
| 6883337a18 | |||
| 3b81986bdd | |||
| ec59eff352 | |||
| b6de689400 | |||
| 1da68cfc7c | |||
| a5bf76b30f | |||
| c78ee7e49b | |||
| 7749980040 | |||
| 222deff03c | |||
| 6a3e73de3f | |||
| 498fa51605 | |||
| 92df5fabba | |||
| 983306c13d | |||
| e403ad8063 | |||
| 1f7b7f5e6c | |||
| 48254b73e5 | |||
| 2e21f25182 | |||
| 1f96484e8c | |||
| ccbfafd576 | |||
| 0053641796 | |||
| 55f2a24a94 | |||
| 2d2ee95c8a | |||
| 47bf92850c | |||
| f98571fae5 | |||
| e314c41337 | |||
| 2c65415268 | |||
| b002830897 | |||
| fcf52abec8 | |||
| 8e3cb27bfe | |||
| 78212603bc | |||
| 1996e8b2ba | |||
| d7395fc56a | |||
| a278c9e164 | |||
| 60c6dce07d | |||
| 3972093ede | |||
| e78557ec24 | |||
| ea4d479be3 | |||
| 15e5eb67f9 | |||
| 8aea6a3bfc | |||
| 9c5600d8f3 | |||
| 97b24a51a1 | |||
| 106ff03f2e | |||
| d9e5cce2b2 | |||
| daad8437c2 | |||
| 8037eab895 | |||
| 09756b5150 | |||
| a52d68438b | |||
| f4d1d02ded | |||
| 3d12935e2e | |||
| 64480ff1ab | |||
| abe8ba9266 | |||
| 1048782eb4 | |||
| 622c4adad6 | |||
| ae6da05e9d | |||
| ba0b173e02 | |||
| 9097c9086b | |||
| c5c0617c89 | |||
| d29e01d552 | |||
| 122806161b | |||
| 3a23662a34 | |||
| 659cc3ed61 | |||
| 2a096a6ff9 | |||
| 0c09fe4560 | |||
| 51dd1361e3 | |||
| a48ea8768f | |||
| 95d34c510e | |||
| d36e130315 | |||
| 7d8f2243ae | |||
| 27ab3cf4e7 | |||
| 31b609dff0 | |||
| fbf75b1d14 | |||
| e9aa0d5c5a | |||
| cdfd70d3f7 | |||
| 7287fcc170 | |||
| c378d935f3 | |||
| 8eae31d865 | |||
| c7c068ade0 | |||
| b02dbfaddf | |||
| c63b1f1981 | |||
| 944494c4ef | |||
| a971751dab | |||
| 6ec670129b | |||
| 4506da041a | |||
| e9962198d0 | |||
| 82cb3b99e5 | |||
| dfb3ab0681 | |||
| 5b60fcc8f6 | |||
| 9e08fd668c | |||
| 513c1fd981 | |||
| 3866da944c | |||
| 613a9e3143 | |||
| ff8e701793 | |||
| 451b0c1e15 | |||
| 8ce9ee8e41 | |||
| 9593ea95f7 | |||
| c872802ced | |||
| a445db1b7b | |||
| fff838d7c6 | |||
| 91934d1f8e | |||
| 2f7293e25c | |||
| 18c76602b5 | |||
| 93491eb2eb | |||
| 2ded86c369 | |||
| f059c35d9e | |||
| 6e8d65e3aa | |||
| a750d2d507 | |||
| 331e0268a3 | |||
| e6424dc8ab | |||
| f923a431f7 | |||
| 00db626942 | |||
| eb0f22b4ee | |||
| e068e0f2f5 | |||
| 771594519f | |||
| ec44ca58f1 | |||
| cb574148eb | |||
| 771efa527f | |||
| 28e31c46c6 | |||
| c2fa4b6103 | |||
| 99ca6d5e77 | |||
| 876b845762 | |||
| e4122ce4d2 | |||
| 7bc51725c0 | |||
| 3d02a314b9 | |||
| 30a4f47cba | |||
| 668da3a827 | |||
| 322aad166b | |||
| 3decd70319 | |||
| 24857ec04b | |||
| a016f39e97 | |||
| 8699bf7521 | |||
| 34b303a86f | |||
| e39f3eba44 | |||
| de7f08357c | |||
| 9856d2979f | |||
| 082af614ff | |||
| 0c6864c7ed | |||
| dd20985952 | |||
| 0971857e7e | |||
| 6700a4e3bd | |||
| 6a5937bd90 | |||
| aa8a8f80f0 | |||
| e17f556c25 | |||
| c190aaeddc | |||
| 4d0b0947d2 | |||
| 4afbf00e45 | |||
| cd13a05270 | |||
| db9e0fd0d3 | |||
| 6a10bf4d98 | |||
| a624ee5e35 | |||
| be15644b96 | |||
| f3783c9800 | |||
| ac3808f9c3 | |||
| c5fb2b6143 | |||
| 4a89508b50 | |||
| 30deec4224 | |||
| 642fa42f25 | |||
| e713c439f0 | |||
| ac69577182 | |||
| 46389d04f0 | |||
| 3300a08c87 | |||
| 1db0ad6298 | |||
| 728739ed4c | |||
| 965187a8bb | |||
| aa88174c28 | |||
| 160b650833 | |||
| c5036187c2 | |||
| 736d8b6b04 | |||
| 7ede3ed08a | |||
| bb867832e1 | |||
| f3cc4b5ebd | |||
| c58252386f | |||
| a7e516a43d | |||
| d0feeb938c | |||
| 2c2e053bd1 | |||
| b7647b3992 | |||
| 1e5f8e03cb | |||
| 4f3c14f25b | |||
| 6c68e59113 | |||
| 6e30c6770b | |||
| a2d447aecf | |||
| 3bcddd5b4c | |||
| b11964f0eb | |||
| 1920a545f4 | |||
| 5c24f8bf83 | |||
| b1c2065dfb | |||
| ad28527a76 | |||
| 9d519a3a3f | |||
| fa6686361c | |||
| cab268212c | |||
| f5c3907fac | |||
| 4118f348f5 | |||
| 1e4af8991b | |||
| 02ea108bea | |||
| 46d3288a50 | |||
| 6aef92950a | |||
| cfcc6cfa1c | |||
| e96410e714 | |||
| e08cdc22d1 | |||
| 15091310a6 | |||
| dd4b0e189c | |||
| c4b14740d5 | |||
| 140c78ecd1 | |||
| 72a0936f49 | |||
| 8b7d4393dc | |||
| 1724912cd8 | |||
| b07fd608b3 | |||
| 6eba8ec76f | |||
| b32c5b7ba2 | |||
| 0593c29784 | |||
| 0d402492db | |||
| bcf7c4e035 | |||
| d9bacfc396 | |||
| f6d7ec3d50 | |||
| d2a116fe55 | |||
| eb3cf9d130 | |||
| 7e2258be7d | |||
| bb5d446001 | |||
| e9aba4795f | |||
| c16bb9715f | |||
| 0f09e8d433 | |||
| f338dff171 | |||
| 3c6ed12637 | |||
| e2f3a11a33 | |||
| 0571deb290 | |||
| 451b357e40 | |||
| 84b67a8f53 | |||
| 448cf731bb | |||
| 9cb480f0f0 | |||
| 6825a631f5 | |||
| 39f91a030f | |||
| 202e4d5be8 | |||
| 045e58778a | |||
| e375d60c67 | |||
| fcb5499d3a | |||
| dd5a54a8e0 | |||
| 9f24a46b8a | |||
| d7eaab97dd | |||
| a03d1e5ac5 | |||
| d5d4d88481 | |||
| 1c823b09c4 | |||
| e5732bcee1 | |||
| c0f283335a | |||
| 64cdf64751 | |||
| 609bfc35c0 | |||
| 121d11db55 | |||
| 5c357f012d | |||
| 56285f8637 | |||
| b61158d329 | |||
| 0233197073 | |||
| d883397d75 | |||
| 5bd82c4637 | |||
| e942867635 | |||
| 29749ed7cb | |||
| 0288f33556 | |||
| ddeac08991 | |||
| 30e12d681c | |||
| f9fce9f2a7 | |||
| 9c5bb8c6eb | |||
| f2ab409284 | |||
| 7c190810fd | |||
| 2b2cd21674 | |||
| f025234c85 | |||
| 44035637f7 | |||
| 008a5c70b9 | |||
| 24eaef1604 | |||
| 62adcab722 | |||
| e12b630dfb | |||
| 81b3ecb056 | |||
| b4d14644ee | |||
| 69fd584c32 | |||
| 3444ec50a7 | |||
| 02d4c65e01 | |||
| efdcfe9985 | |||
| 5884b7a87c | |||
| 7229446ce7 | |||
| c355d63768 | |||
| eb0030adeb | |||
| fe224d9ecd | |||
| a98d55db58 | |||
| f034163da5 | |||
| d8fe011509 | |||
| e7bb3b3e83 | |||
| 3201206d4f | |||
| 69c14d2a5d | |||
| 778cbe04d9 | |||
| 131a8f421d | |||
| 6fcd4b7bd4 | |||
| f3b2f6ab76 | |||
| b556e860c4 | |||
| eb01a005dc | |||
| 6dcee51940 | |||
| 4c7a53b72b | |||
| 73c9fba731 | |||
| 0726ae9e83 | |||
| 9ba4ca10ca | |||
| 38caa645e5 | |||
| 41507e966a | |||
| 3092f04bcf | |||
| ffc0765a2f | |||
| ac803aa426 | |||
| 92b63d9fad | |||
| fda3323386 | |||
| b7a4aba5f3 | |||
| 7848a028e3 | |||
| d827aafe89 | |||
| db8094cd68 | |||
| 59d29dc12f | |||
| 7aad934dae | |||
| 0b1e33748a | |||
| 97be694d2a | |||
| 576e574399 | |||
| 6d9a195830 | |||
| 8107a8bd1e | |||
| 47d783291d | |||
| 0295f8dee2 | |||
| d915f73c6c | |||
| 187bf3085c | |||
| a353a653d1 | |||
| 155f1fde49 | |||
| ec1a535acb | |||
| fb5bcdc364 | |||
| e6f42247e7 | |||
| 4bc0b30231 | |||
| 1cd2645b87 | |||
| 7904d0aadc | |||
| 06fa6850a1 | |||
| 485f5831ac | |||
| 587bcd8e21 | |||
| d43b7b1882 | |||
| ca147143ad | |||
| 3371967dad | |||
| b09825ab0f | |||
| 5edf45468c | |||
| 507e8d5222 | |||
| b9283009df | |||
| 60ddaf449d | |||
| 5bad81e182 | |||
| 2e15f22621 | |||
| 6a3a822640 | |||
| e5057e1627 | |||
| 0a8f720586 | |||
| 5dbfb447b1 | |||
| 1f21dfbcfd | |||
| 53481830a9 | |||
| 7eb8e6456e | |||
| 5f0352404b | |||
| b036b8c547 | |||
| 39ca977b18 | |||
| abc078fb1b | |||
| 166490845c | |||
| c2399e3620 | |||
| a2890b6d0d | |||
| a1dee989c7 | |||
| 6ff1dac925 | |||
| 0b011929bf | |||
| be3d1ff9e1 | |||
| 9c73b7285f | |||
| 810793aba7 | |||
| ef8d7d2fd7 | |||
| ae341be638 | |||
| dcef8679d2 | |||
| 0bb09a53ea | |||
| deb1156916 | |||
| 1d87a81f63 | |||
| 8ef8b2528b | |||
| f05109232e | |||
| cf1001bffc | |||
| 7bf2218c36 | |||
| 48c9879bc4 | |||
| 2fe5e5ed01 | |||
| 38fd09bd9a | |||
| 4c5a81782b | |||
| ace3122e07 | |||
| f5c35487d9 | |||
| 06df0e1ee4 | |||
| 9735bd1b01 | |||
| cd8bad58cd | |||
| 53a3cd9422 | |||
| 5e2f25af9b | |||
| 865d118651 | |||
| 6ea6bfeed0 | |||
| 48527eb90a | |||
| 33d8f98da9 | |||
| 658a30d16a | |||
| 0189d1cb55 | |||
| 8df94fa02b | |||
| f5f89c31eb | |||
| 46cb34f2ec | |||
| f6f13540c8 | |||
| 21ce7709ab | |||
| d569e37b81 | |||
| c9c6edeb84 | |||
| 9525667ebd | |||
| 28a3d86348 | |||
| fc8aa58e62 | |||
| cb2bbacae8 | |||
| c3c6261a2d | |||
| 8bfec24108 | |||
| 9ad2665ad8 | |||
| 28894868e3 | |||
| a8fcd994c9 | |||
| c678ab7d01 | |||
| 3a93c08813 | |||
| ab1469638f | |||
| 9073caf287 | |||
| 1bed8234c9 | |||
| 621c70253d | |||
| 56ef4ddd47 | |||
| bad9ad3dd7 | |||
| 36570645ff | |||
| 3711bdc41e | |||
| cbdcd9f63e | |||
| a9268bc56e | |||
| f489347fca | |||
| 663925f9e8 | |||
| cc2651c377 | |||
| e651b9c7ff | |||
| bcad236fb6 | |||
| 0af8d506c1 | |||
| 0b65a0f508 | |||
| b03a758747 | |||
| 44597f2fbc | |||
| 0844113f3a | |||
| 79e99b68d6 | |||
| c64b7bb79c | |||
| e72b438ad2 | |||
| 3e4a112a3d | |||
| a020b67f67 | |||
| fa958e7a07 | |||
| 1a3e81a3f8 | |||
| 0eb7a8a771 | |||
| 2fa004808f | |||
| cc5fd30256 | |||
| c90bfc310a | |||
| 62d1d621aa | |||
| 6e8cbb8e8f | |||
| 32fa543164 | |||
| 04f93ac54e | |||
| 3c87d13b21 | |||
| 0949eab72e | |||
| aab67b416f | |||
| 83a575e43f | |||
| 333949ee53 | |||
| 1d1238cea3 | |||
| bd7b436631 | |||
| c136df48b9 | |||
| a090a689cf | |||
| 5ef2448a0c | |||
| 06ab4c88ad | |||
| 48efdea11a | |||
| 43cc55cb0a | |||
| 71f2436562 | |||
| 4653c77a81 | |||
| 72b05c6b44 | |||
| b5f68e24d6 | |||
| 3948c8ca61 | |||
| cf3a868e3a | |||
| 43c29abb23 | |||
| 7ef445f526 | |||
| f6c2d4ae6b | |||
| 8f9fae6ad9 | |||
| b45f264e2a | |||
| 986f8f48c7 | |||
| bbc2e86286 | |||
| 2dc126bf19 | |||
| 86cbcdc089 | |||
| 1dd957f461 | |||
| 4be4946756 | |||
| 65979cbc75 | |||
| 6a7118ff6d | |||
| a88b3553ba | |||
| fd5348d26d | |||
| 569569f1fc | |||
| 489b9b358b | |||
| 71cfdfc7c8 | |||
| 6ebf4ed428 | |||
| 5be0739c5d | |||
| 6721e59277 | |||
| 77775d85ab | |||
| 6de0865c3e |
@@ -1,41 +0,0 @@
|
|||||||
---
|
|
||||||
name: Bug report
|
|
||||||
about: Create a report to help us improve
|
|
||||||
title: ''
|
|
||||||
labels: bug
|
|
||||||
assignees: ''
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
#####################################################
|
|
||||||
**If you have a technical issue, please do not open a bug this way!**
|
|
||||||
Please use the `wails issue` command!
|
|
||||||
If you do not do this then the issue may be closed automatically.
|
|
||||||
|
|
||||||
NOTE: If your bug is related to Windows, make sure you read
|
|
||||||
the [Windows Developer Guide](https://wails.app/guides/windows/)
|
|
||||||
#####################################################
|
|
||||||
|
|
||||||
**Description**
|
|
||||||
A clear and concise description of what the bug is.
|
|
||||||
|
|
||||||
**To Reproduce**
|
|
||||||
Steps to reproduce the behaviour:
|
|
||||||
1. Go to '...'
|
|
||||||
2. Click on '....'
|
|
||||||
3. Scroll down to '....'
|
|
||||||
4. See error
|
|
||||||
|
|
||||||
**Expected behaviour**
|
|
||||||
A clear and concise description of what you expected to happen.
|
|
||||||
|
|
||||||
**Screenshots**
|
|
||||||
If applicable, add screenshots to help explain your problem.
|
|
||||||
|
|
||||||
**System Details**
|
|
||||||
Please provide your platform, GO version and variables, etc
|
|
||||||
|
|
||||||
**Additional context**
|
|
||||||
Add any other context about the problem here.
|
|
||||||
|
|
||||||
- [ ] This issue is for Windows and I have read the [Windows Developer Guide](https://wails.app/guides/windows/)
|
|
||||||
@@ -0,0 +1,83 @@
|
|||||||
|
name: Bug Report
|
||||||
|
description: Create a report to help us improve
|
||||||
|
# title: ""
|
||||||
|
labels: ["bug"]
|
||||||
|
|
||||||
|
body:
|
||||||
|
- type: markdown
|
||||||
|
attributes:
|
||||||
|
value: |
|
||||||
|
***Please note: No new bug reports are being accepted for Wails v1***
|
||||||
|
Before submitting this issue, please do the following:
|
||||||
|
- Do a web search for your error. This usually leads to a much better understanding of the issue.
|
||||||
|
- Prove that the error is indeed a Wails bug and not an application bug, with a specific set of steps to reproduce.
|
||||||
|
- Search the issue tracker using [this link](https://github.com/wailsapp/wails/issues?q=is%3Aissue+).
|
||||||
|
- Search the [discussion forums](https://github.com/wailsapp/wails/discussions?discussions_q=type+your+issue+here).
|
||||||
|
- Read the [Troubleshooting Guide](https://wails.io/docs/next/guides/troubleshooting).
|
||||||
|
- Try to fix it yourself. Keep a list of things you have done to fix the problem.
|
||||||
|
|
||||||
|
If after doing all the above, the problem remains, please continue with this ticket providing *all* the information requested.
|
||||||
|
|
||||||
|
Bug reports that do not follow these steps will likely be closed, so please help us to help you.
|
||||||
|
|
||||||
|
- type: textarea
|
||||||
|
id: description
|
||||||
|
attributes:
|
||||||
|
label: Description
|
||||||
|
description: A clear and concise description of what the bug is.
|
||||||
|
placeholder: A clear and concise description of what the bug is.
|
||||||
|
# value: ""
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
id: reproduce
|
||||||
|
attributes:
|
||||||
|
label: To Reproduce
|
||||||
|
description: Steps to reproduce the behaviour
|
||||||
|
placeholder: |
|
||||||
|
1. Go to '...'
|
||||||
|
2. Click on '....'
|
||||||
|
3. Scroll down to '....'
|
||||||
|
4. See error
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
id: expected-behaviour
|
||||||
|
attributes:
|
||||||
|
label: Expected behaviour
|
||||||
|
description: A clear and concise description of what you expected to happen.
|
||||||
|
placeholder: A clear and concise description of what you expected to happen.
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
id: screenshots
|
||||||
|
attributes:
|
||||||
|
label: Screenshots
|
||||||
|
description: If applicable, add screenshots to help explain your problem.
|
||||||
|
placeholder: If applicable, add screenshots to help explain your problem.
|
||||||
|
validations:
|
||||||
|
required: false
|
||||||
|
- type: textarea
|
||||||
|
id: attempted-fixes
|
||||||
|
attributes:
|
||||||
|
label: Attempted Fixes
|
||||||
|
description: A list of things you have tried to fix the problem, including search engine links.
|
||||||
|
placeholder: A list of things you have tried to fix the problem, including search engine links.
|
||||||
|
validations:
|
||||||
|
required: false
|
||||||
|
- type: textarea
|
||||||
|
id: systemetails
|
||||||
|
attributes:
|
||||||
|
label: System Details
|
||||||
|
description: Please add the output of `wails doctor`.
|
||||||
|
render: shell
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
id: additional-context
|
||||||
|
attributes:
|
||||||
|
label: Additional context
|
||||||
|
description: Add any other context about the problem here.
|
||||||
|
placeholder: Add any other context about the problem here.
|
||||||
|
validations:
|
||||||
|
required: false
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
blank_issues_enabled: false
|
||||||
|
contact_links:
|
||||||
|
- name: GitHub Community Discussions
|
||||||
|
url: https://github.com/wailsapp/wails/discussions
|
||||||
|
about: If your question is not a feature or a bug, please go to the discussion panel and retrieve if your question already exists before submitting.
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
---
|
|
||||||
name: Feature request
|
|
||||||
about: Suggest an idea for this project
|
|
||||||
title: ''
|
|
||||||
labels: enhancement
|
|
||||||
assignees: ''
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
**Is your feature request related to a problem? Please describe.**
|
|
||||||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
|
|
||||||
|
|
||||||
**Describe the solution you'd like**
|
|
||||||
A clear and concise description of what you want to happen.
|
|
||||||
|
|
||||||
**Describe alternatives you've considered**
|
|
||||||
A clear and concise description of any alternative solutions or features you've considered.
|
|
||||||
|
|
||||||
**Additional context**
|
|
||||||
Add any other context or screenshots about the feature request here.
|
|
||||||
@@ -0,0 +1,39 @@
|
|||||||
|
name: Feature request
|
||||||
|
description: Suggest an idea for this project
|
||||||
|
# title: ""
|
||||||
|
labels: ["enhancement"]
|
||||||
|
|
||||||
|
body:
|
||||||
|
- type: markdown
|
||||||
|
attributes:
|
||||||
|
value: |
|
||||||
|
Before opening a feature request, please check the [Roadmap](https://github.com/wailsapp/wails/discussions/1484) to see if it has already been requested.
|
||||||
|
***Please note: No new feature requests are being accepted for Wails v1***
|
||||||
|
|
||||||
|
- type: textarea
|
||||||
|
attributes:
|
||||||
|
label: Is your feature request related to a problem? Please describe.
|
||||||
|
description: A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
|
||||||
|
validations:
|
||||||
|
required: false
|
||||||
|
|
||||||
|
- type: textarea
|
||||||
|
attributes:
|
||||||
|
label: Describe the solution you'd like
|
||||||
|
description: A clear and concise description of what you want to happen.
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
- type: textarea
|
||||||
|
attributes:
|
||||||
|
label: Describe alternatives you've considered
|
||||||
|
description: A clear and concise description of any alternative solutions or features you've considered.
|
||||||
|
validations:
|
||||||
|
required: false
|
||||||
|
|
||||||
|
- type: textarea
|
||||||
|
attributes:
|
||||||
|
label: Additional context
|
||||||
|
description: Add any other context or screenshots about the feature request here.
|
||||||
|
validations:
|
||||||
|
required: false
|
||||||
+4
-1
@@ -8,6 +8,7 @@ exemptLabels:
|
|||||||
- security
|
- security
|
||||||
- onhold
|
- onhold
|
||||||
- inprogress
|
- inprogress
|
||||||
|
- "Selected For Development"
|
||||||
# Label to use when marking an issue as stale
|
# Label to use when marking an issue as stale
|
||||||
staleLabel: wontfix
|
staleLabel: wontfix
|
||||||
# Comment to post when marking an issue as stale. Set to `false` to disable
|
# Comment to post when marking an issue as stale. Set to `false` to disable
|
||||||
@@ -16,4 +17,6 @@ markComment: >
|
|||||||
recent activity. It will be closed if no further activity occurs. Thank you
|
recent activity. It will be closed if no further activity occurs. Thank you
|
||||||
for your contributions.
|
for your contributions.
|
||||||
# Comment to post when closing a stale issue. Set to `false` to disable
|
# Comment to post when closing a stale issue. Set to `false` to disable
|
||||||
closeComment: false
|
closeComment: false
|
||||||
|
exemptMilestones: true
|
||||||
|
exemptAssignees: true
|
||||||
|
|||||||
@@ -1,10 +1,9 @@
|
|||||||
name: Deploy mirror | 部署镜像
|
name: Sync upstream branch and deploy mirror | 同步上游分支并部署镜像
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
schedule:
|
||||||
branches: [master]
|
- cron: "0 8,20 * * *"
|
||||||
# pull_request:
|
workflow_dispatch:
|
||||||
# branches: [ main ]
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-deploy:
|
build-and-deploy:
|
||||||
@@ -20,6 +19,22 @@ jobs:
|
|||||||
submodules: true
|
submodules: true
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Setup Git | 设置Git
|
||||||
|
run: |
|
||||||
|
git config --local user.email "i@misitebao.com"
|
||||||
|
git config --local user.name "misitebao"
|
||||||
|
|
||||||
|
- name: Add remote upstream repository and sync | 添加远程上游仓库并同步
|
||||||
|
run: |
|
||||||
|
git remote add upstream https://github.com/wailsapp/wails
|
||||||
|
git pull -v --progress --no-rebase "upstream" master
|
||||||
|
|
||||||
|
- name: Push | 推送
|
||||||
|
uses: ad-m/github-push-action@master
|
||||||
|
with:
|
||||||
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
branch: ${{ github.ref }}
|
||||||
|
|
||||||
- name: Build Site | 构建网站
|
- name: Build Site | 构建网站
|
||||||
run: |
|
run: |
|
||||||
cd website &&
|
cd website &&
|
||||||
|
|||||||
@@ -31,3 +31,5 @@ v2/test/kitchensink/frontend/package.json.md5
|
|||||||
!v2/internal/ffenestri/windows/x64/webview2.dll
|
!v2/internal/ffenestri/windows/x64/webview2.dll
|
||||||
!v2/internal/ffenestri/windows/x64/WebView2Loader.dll
|
!v2/internal/ffenestri/windows/x64/WebView2Loader.dll
|
||||||
.idea/
|
.idea/
|
||||||
|
v2/cmd/wails/internal/commands/initialise/templates/testtemplates/
|
||||||
|
v2/internal/frontend/desktop/darwin/test.xcodeproj
|
||||||
@@ -1,80 +1,118 @@
|
|||||||
<p align="center" style="text-align: center">
|
<p align="center" style="text-align: center">
|
||||||
<img src="logo.png" width="55%"><br/>
|
<img src="logo-universal.png" width="55%"><br/>
|
||||||
</p>
|
</p>
|
||||||
<p align="center">
|
<p align="center">
|
||||||
Build desktop applications using Go & Web Technologies.<br/><br/>
|
Build desktop applications using Go & Web Technologies.<br/><br/>
|
||||||
<a href="https://github.com/wailsapp/wails/blob/master/LICENSE"><img src="https://img.shields.io/badge/License-MIT-blue.svg"></a>
|
<a href="https://github.com/wailsapp/wails/blob/master/LICENSE">
|
||||||
<a href="https://goreportcard.com/report/github.com/wailsapp/wails"><img src="https://goreportcard.com/badge/github.com/wailsapp/wails"/></a>
|
<img src="https://img.shields.io/badge/License-MIT-blue.svg">
|
||||||
<a href="http://godoc.org/github.com/wailsapp/wails"><img src="https://img.shields.io/badge/godoc-reference-blue.svg"/></a>
|
</a>
|
||||||
<a href="https://www.codefactor.io/repository/github/wailsapp/wails"><img src="https://www.codefactor.io/repository/github/wailsapp/wails/badge" alt="CodeFactor" /></a>
|
<a href="https://goreportcard.com/report/github.com/wailsapp/wails">
|
||||||
<a href="https://github.com/wailsapp/wails/issues"><img src="https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat" alt="CodeFactor" /></a>
|
<img src="https://goreportcard.com/badge/github.com/wailsapp/wails"/>
|
||||||
<a href="https://app.fossa.io/projects/git%2Bgithub.com%2Fwailsapp%2Fwails?ref=badge_shield" alt="FOSSA Status"><img src="https://app.fossa.io/api/projects/git%2Bgithub.com%2Fwailsapp%2Fwails.svg?type=shield"/></a>
|
</a>
|
||||||
<a href="https://houndci.com"><img src="https://img.shields.io/badge/Reviewed_by-Hound-8E64B0.svg"/></a>
|
<a href="http://godoc.org/github.com/wailsapp/wails">
|
||||||
<a href="https://github.com/avelino/awesome-go" rel="nofollow"><img src="https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg" alt="Awesome"></a>
|
<img src="https://img.shields.io/badge/godoc-reference-blue.svg"/>
|
||||||
<a href="https://github.com/wailsapp/wails/workflows/release/badge.svg?branch=master" rel="nofollow"><img src="https://github.com/wailsapp/wails/workflows/release/badge.svg?branch=master" alt="Release Pipelines"></a>
|
</a>
|
||||||
|
<a href="https://www.codefactor.io/repository/github/wailsapp/wails">
|
||||||
|
<img src="https://www.codefactor.io/repository/github/wailsapp/wails/badge" alt="CodeFactor" />
|
||||||
|
</a>
|
||||||
|
<a href="https://github.com/wailsapp/wails/issues">
|
||||||
|
<img src="https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat" alt="CodeFactor" />
|
||||||
|
</a>
|
||||||
|
<a href="https://app.fossa.io/projects/git%2Bgithub.com%2Fwailsapp%2Fwails?ref=badge_shield" alt="FOSSA Status">
|
||||||
|
<img src="https://app.fossa.io/api/projects/git%2Bgithub.com%2Fwailsapp%2Fwails.svg?type=shield"/>
|
||||||
|
</a>
|
||||||
|
<a href="https://houndci.com">
|
||||||
|
<img src="https://img.shields.io/badge/Reviewed_by-Hound-8E64B0.svg"/>
|
||||||
|
</a>
|
||||||
|
<a href="https://github.com/avelino/awesome-go" rel="nofollow">
|
||||||
|
<img src="https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg" alt="Awesome"/>
|
||||||
|
</a>
|
||||||
|
<a href="https://github.com/wailsapp/wails/workflows/release/badge.svg?branch=master" rel="nofollow">
|
||||||
|
<img src="https://github.com/wailsapp/wails/workflows/release/badge.svg?branch=master" alt="Release Pipelines"/>
|
||||||
|
</a>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<span id="nav-1"></span>
|
<span id="nav-1"></span>
|
||||||
|
|
||||||
## Internationalization
|
## Internationalization
|
||||||
|
|
||||||
English | [简体中文](README.zh-Hans.md)
|
[English](README.md) | [简体中文](README.zh-Hans.md)
|
||||||
|
|
||||||
|
<span id="nav-2"></span>
|
||||||
|
|
||||||
|
## Table of Contents
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>Click me to Open/Close the directory listing</summary>
|
||||||
|
|
||||||
|
- [1. Internationalization](#nav-1)
|
||||||
|
- [2. Table of Contents](#nav-2)
|
||||||
|
- [3. Introduction](#nav-3)
|
||||||
|
- [3.1 Official Website](#nav-3-1)
|
||||||
|
- [4. Features](#nav-4)
|
||||||
|
- [5. Sponsors](#nav-5)
|
||||||
|
- [6. Installation](#nav-6)
|
||||||
|
- [7. FAQ](#nav-8)
|
||||||
|
- [8. Contributors](#nav-9)
|
||||||
|
- [9. Special Mentions](#nav-10)
|
||||||
|
- [10. Special Thanks](#nav-11)
|
||||||
|
|
||||||
|
</details>
|
||||||
|
|
||||||
|
<span id="nav-3"></span>
|
||||||
|
|
||||||
|
## Introduction
|
||||||
|
|
||||||
The traditional method of providing web interfaces to Go programs is via a built-in web server. Wails offers a different
|
The traditional method of providing web interfaces to Go programs is via a built-in web server. Wails offers a different
|
||||||
approach: it provides the ability to wrap both Go code and a web frontend into a single binary. Tools are provided to
|
approach: it provides the ability to wrap both Go code and a web frontend into a single binary. Tools are provided to
|
||||||
make this easy for you by handling project creation, compilation and bundling. All you have to do is get creative!
|
make this easy for you by handling project creation, compilation and bundling. All you have to do is get creative!
|
||||||
|
|
||||||
The official docs can be found at [https://wails.app](https://wails.app).
|
<span id="nav-3-1"></span>
|
||||||
|
<hr/>
|
||||||
|
<h3><strong>PLEASE NOTE: As we are approaching the v2 release, we are not accepting any new feature requests or bug reports for v1. If you have a critical issue, please open a ticket and state why it is critical.</strong></h3>
|
||||||
|
<hr/>
|
||||||
|
|
||||||
Click [here](https://wails.io) if you are interested in trying out v2 Beta for Windows.
|
### Version 2
|
||||||
|
|
||||||
<span id="nav-2"></span>
|
Wails v2 has been released in Beta for all 3 platforms. Check out the [new website](https://wails.io) if you are
|
||||||
|
interested in trying it out.
|
||||||
|
|
||||||
## Contents
|
### Legacy v1 Website
|
||||||
|
|
||||||
- [1. Internationalization](#nav-1)
|
The legacy v1 docs can be found at [https://wails.app](https://wails.app).
|
||||||
- [2. Contents](#nav-2)
|
|
||||||
- [3. Features](#nav-3)
|
|
||||||
- [4. Sponsors](#nav-4)
|
|
||||||
- [5. Installation](#nav-5)
|
|
||||||
- [5.1 MacOS](#nav-5-1)
|
|
||||||
- [5.2 Linux](#nav-5-2)
|
|
||||||
- [5.2.1 Debian/Ubuntu](#nav-5-2-1)
|
|
||||||
- [5.2.2 Arch Linux / ArchLabs / Ctlos Linux](#nav-5-2-2)
|
|
||||||
- [5.2.3 Centos](#nav-5-2-3)
|
|
||||||
- [5.2.4 Fedora](#nav-5-2-4)
|
|
||||||
- [5.2.5 VoidLinux & VoidLinux-musl](#nav-5-2-5)
|
|
||||||
- [5.2.6 Gentoo](#nav-5-2-6)
|
|
||||||
- [5.3 Windows](#nav-5-3)
|
|
||||||
- [6. Installation](#nav-6)
|
|
||||||
- [7. Next Steps](#nav-7)
|
|
||||||
- [8. FAQ](#nav-8)
|
|
||||||
- [9. Contributors](#nav-9)
|
|
||||||
- [10. Special Mentions](#nav-10)
|
|
||||||
- [11. Special Thanks](#nav-11)
|
|
||||||
|
|
||||||
<span id="nav-3"></span>
|
<span id="nav-4"></span>
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
- Use standard Go for the backend
|
- Use standard Go for the backend
|
||||||
- Use any frontend technology to build your UI
|
- Use any frontend technology you are already familiar with to build your UI
|
||||||
- Quickly create Vue, Vuetify or React frontends for your Go programs
|
- Quickly create rich frontends for your Go programs using pre-built templates
|
||||||
- Expose Go methods/functions to the frontend via a single bind command
|
- Easily call Go methods from Javascript
|
||||||
- Uses native rendering engines - no embedded browser
|
- Auto-generated Typescript definitions for your Go structs and methods
|
||||||
- Shared events system
|
- Native Dialogs & Menus
|
||||||
- Native file dialogs
|
- Supports modern translucency and "frosted window" effects
|
||||||
- Powerful cli tool
|
- Unified eventing system between Go and Javascript
|
||||||
|
- Powerful cli tool to quickly generate and build your projects
|
||||||
- Multiplatform
|
- Multiplatform
|
||||||
|
- Uses native rendering engines - *no embedded browser*!
|
||||||
|
|
||||||
<span id="nav-4"></span>
|
<span id="nav-5"></span>
|
||||||
|
|
||||||
## Sponsors
|
## Sponsors
|
||||||
|
|
||||||
This project is supported by these kind people / companies:
|
This project is supported by these kind people / companies:
|
||||||
|
|
||||||
<a href="https://github.com/sponsors/leaanthony" style="width:100px;">
|
<a href="https://github.com/sponsors/leaanthony" style="width:100px;">
|
||||||
<img src="sponsors/bronze%20sponsor.png" width="100"/>
|
<img src="/img/silver%20sponsor.png" width="100"/>
|
||||||
|
</a>
|
||||||
|
<a href="https://github.com/selvindev" style="width:100px;">
|
||||||
|
<img src="https://github.com/selvindev.png?size=100" width="100"/>
|
||||||
|
</a>
|
||||||
|
<br/>
|
||||||
|
<br/>
|
||||||
|
<a href="https://github.com/sponsors/leaanthony" style="width:100px;">
|
||||||
|
<img src="img/bronze%20sponsor.png" width="100"/>
|
||||||
</a>
|
</a>
|
||||||
<a href="https://github.com/snider" style="width:100px;">
|
<a href="https://github.com/snider" style="width:100px;">
|
||||||
<img src="https://github.com/snider.png?size=100" width="100"/>
|
<img src="https://github.com/snider.png?size=100" width="100"/>
|
||||||
@@ -82,13 +120,16 @@ This project is supported by these kind people / companies:
|
|||||||
<a href="https://github.com/codydbentley" style="width:100px">
|
<a href="https://github.com/codydbentley" style="width:100px">
|
||||||
<img src="https://github.com/codydbentley.png?size=100" width="100"/>
|
<img src="https://github.com/codydbentley.png?size=100" width="100"/>
|
||||||
</a>
|
</a>
|
||||||
|
<a href="https://www.easywebadv.it/" style="width:100px">
|
||||||
|
<img src="website/static/img/easyweb.png" width="100"/>
|
||||||
|
</a>
|
||||||
<br/>
|
<br/>
|
||||||
<br/>
|
<br/>
|
||||||
<a href="https://github.com/matryer" style="width:100px">
|
<a href="https://github.com/matryer" style="width:100px">
|
||||||
<img src="https://github.com/matryer.png" width="100"/>
|
<img src="https://github.com/matryer.png" width="100"/>
|
||||||
</a>
|
</a>
|
||||||
<a href="https://www.jetbrains.com?from=Wails" style="width:100px">
|
<a href="https://www.jetbrains.com?from=Wails" style="width:100px">
|
||||||
<img src="/img/jetbrains-grayscale.png" width="100"/>
|
<img src="/assets/images/jetbrains-grayscale.png" width="100"/>
|
||||||
</a>
|
</a>
|
||||||
<a href="https://github.com/tc-hib" style="width:55px">
|
<a href="https://github.com/tc-hib" style="width:55px">
|
||||||
<img src="https://github.com/tc-hib.png?size=55" width="55"/>
|
<img src="https://github.com/tc-hib.png?size=55" width="55"/>
|
||||||
@@ -117,9 +158,6 @@ This project is supported by these kind people / companies:
|
|||||||
<a href="https://github.com/bglw" style="width:65px">
|
<a href="https://github.com/bglw" style="width:65px">
|
||||||
<img src="https://github.com/bglw.png?size=65" width="65"/>
|
<img src="https://github.com/bglw.png?size=65" width="65"/>
|
||||||
</a>
|
</a>
|
||||||
<a href="https://github.com/jugglingjsons" style="width:50px">
|
|
||||||
<img src="https://github.com/jugglingjsons.png?size=50" width="50"/>
|
|
||||||
</a>
|
|
||||||
<a href="https://github.com/marcus-crane" style="width:65px">
|
<a href="https://github.com/marcus-crane" style="width:65px">
|
||||||
<img src="https://github.com/marcus-crane.png?size=65" width="65"/>
|
<img src="https://github.com/marcus-crane.png?size=65" width="65"/>
|
||||||
</a>
|
</a>
|
||||||
@@ -132,111 +170,47 @@ This project is supported by these kind people / companies:
|
|||||||
<a href="https://github.com/ilgityildirim" style="width:50px">
|
<a href="https://github.com/ilgityildirim" style="width:50px">
|
||||||
<img src="https://github.com/ilgityildirim.png?size=50" width="50"/>
|
<img src="https://github.com/ilgityildirim.png?size=50" width="50"/>
|
||||||
</a>
|
</a>
|
||||||
<a href="https://github.com/ondoki" style="width:65px">
|
|
||||||
<img src="https://github.com/ondoki.png?size=65" width="65"/>
|
|
||||||
</a>
|
|
||||||
<a href="https://github.com/questrail" style="width:50px">
|
<a href="https://github.com/questrail" style="width:50px">
|
||||||
<img src="https://github.com/questrail.png?size=50" width="50"/>
|
<img src="https://github.com/questrail.png?size=50" width="50"/>
|
||||||
</a>
|
</a>
|
||||||
<a href="https://github.com/DonTomato" style="width:45px">
|
<a href="https://github.com/DonTomato" style="width:45px">
|
||||||
<img src="https://github.com/DonTomato.png?size=45" width="45"/>
|
<img src="https://github.com/DonTomato.png?size=45" width="45"/>
|
||||||
</a>
|
</a>
|
||||||
|
<a href="https://github.com/taigrr" style="width:55px">
|
||||||
<span id="nav-5"></span>
|
<img src="https://github.com/taigrr.png?size=55" width="55"/>
|
||||||
|
</a>
|
||||||
## Installation
|
<a href="https://github.com/charlie-dee" style="width:55px">
|
||||||
|
<img src="https://github.com/charlie-dee.png?size=55" width="55"/>
|
||||||
Wails uses cgo to bind to the native rendering engines so a number of platform dependent libraries are needed as well as
|
</a>
|
||||||
an installation of Go. The basic requirements are:
|
<a href="https://github.com/EdenNetworkItalia" style="width:65px">
|
||||||
|
<img src="https://github.com/EdenNetworkItalia.png?size=65" width="65"/>
|
||||||
- Go 1.16
|
</a>
|
||||||
- npm
|
<a href="https://github.com/michaelolson1996" style="width:55px">
|
||||||
|
<img src="https://github.com/michaelolson1996.png?size=55" width="55"/>
|
||||||
<span id="nav-5-1"></span>
|
</a>
|
||||||
|
<a href="https://github.com/GargantuaX" style="width:45px">
|
||||||
### MacOS
|
<img src="https://github.com/GargantuaX.png?size=45" width="45"/>
|
||||||
|
</a>
|
||||||
Make sure you have the xcode command line tools installed. This can be done by running:
|
<a href="https://github.com/CharlieGo88" style="width:55px">
|
||||||
|
<img src="https://github.com/CharlieGo88.png?size=55" width="55"/>
|
||||||
`xcode-select --install`
|
</a>
|
||||||
|
<a href="https://github.com/Bironou" style="width:55px">
|
||||||
<span id="nav-5-2"></span>
|
<img src="https://github.com/Bironou.png?size=55" width="55"/>
|
||||||
|
</a>
|
||||||
### Linux
|
<a href="https://github.com/Shackelford-Arden" style="width:55px">
|
||||||
|
<img src="https://github.com/Shackelford-Arden.png?size=55" width="55"/>
|
||||||
<span id="nav-5-2-1"></span>
|
</a>
|
||||||
|
|
||||||
#### Debian/Ubuntu
|
|
||||||
|
|
||||||
`sudo apt install libgtk-3-dev libwebkit2gtk-4.0-dev`
|
|
||||||
|
|
||||||
_Debian: 8, 9, 10_
|
|
||||||
|
|
||||||
_Ubuntu: 16.04, 18.04, 19.04_
|
|
||||||
|
|
||||||
_Also succesfully tested on: Zorin 15, Parrot 4.7, Linuxmint 19, Elementary 5, Kali, Neon_, Pop!\_OS
|
|
||||||
|
|
||||||
<span id="nav-5-2-2"></span>
|
|
||||||
|
|
||||||
#### Arch Linux / ArchLabs / Ctlos Linux
|
|
||||||
|
|
||||||
`sudo pacman -S webkit2gtk gtk3`
|
|
||||||
|
|
||||||
_Also succesfully test on: Manjaro & ArcoLinux_
|
|
||||||
|
|
||||||
<span id="nav-5-2-3"></span>
|
|
||||||
|
|
||||||
#### Centos
|
|
||||||
|
|
||||||
`sudo yum install webkitgtk3-devel gtk3-devel`
|
|
||||||
|
|
||||||
_CentOS 6, 7_
|
|
||||||
|
|
||||||
<span id="nav-5-2-4"></span>
|
|
||||||
|
|
||||||
#### Fedora
|
|
||||||
|
|
||||||
`sudo yum install webkit2gtk3-devel gtk3-devel`
|
|
||||||
|
|
||||||
_Fedora 29, 30_
|
|
||||||
|
|
||||||
<span id="nav-5-2-5"></span>
|
|
||||||
|
|
||||||
#### VoidLinux & VoidLinux-musl
|
|
||||||
|
|
||||||
`xbps-install gtk+3-devel webkit2gtk-devel`
|
|
||||||
|
|
||||||
<span id="nav-5-2-6"></span>
|
|
||||||
|
|
||||||
#### Gentoo
|
|
||||||
|
|
||||||
`sudo emerge gtk+:3 webkit-gtk`
|
|
||||||
|
|
||||||
<span id="nav-5-3"></span>
|
|
||||||
|
|
||||||
### Windows
|
|
||||||
|
|
||||||
Windows requires gcc and related tooling. The recommended download is
|
|
||||||
from [http://tdm-gcc.tdragon.net/download](http://tdm-gcc.tdragon.net/download). Once this is installed, you are good to
|
|
||||||
go.
|
|
||||||
|
|
||||||
<span id="nav-6"></span>
|
<span id="nav-6"></span>
|
||||||
|
|
||||||
|
## Roadmap
|
||||||
|
|
||||||
|
The project roadmap may be found [here](https://github.com/wailsapp/wails/discussions/1484). Please consult
|
||||||
|
this before open up an enhancement request.
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
**Ensure Go modules are enabled: GO111MODULE=on and go/bin is in your PATH variable.**
|
The installation instructions are on the [official website](https://wails.io/docs/gettingstarted/installation).
|
||||||
|
|
||||||
Installation is as simple as running the following command:
|
|
||||||
|
|
||||||
<pre style='color:white'>
|
|
||||||
go get -u github.com/wailsapp/wails/cmd/wails
|
|
||||||
</pre>
|
|
||||||
|
|
||||||
<span id="nav-7"></span>
|
|
||||||
|
|
||||||
## Next Steps
|
|
||||||
|
|
||||||
It is recommended at this stage to read the comprehensive documentation at [https://wails.app](https://wails.app).
|
|
||||||
|
|
||||||
<span id="nav-8"></span>
|
<span id="nav-8"></span>
|
||||||
|
|
||||||
@@ -245,8 +219,8 @@ It is recommended at this stage to read the comprehensive documentation at [http
|
|||||||
- Is this an alternative to Electron?
|
- Is this an alternative to Electron?
|
||||||
|
|
||||||
Depends on your requirements. It's designed to make it easy for Go programmers to make lightweight desktop
|
Depends on your requirements. It's designed to make it easy for Go programmers to make lightweight desktop
|
||||||
applications or add a frontend to their existing applications. Whilst Wails does not currently offer hooks into native
|
applications or add a frontend to their existing applications. Wails v2 does offer native elements such as menus
|
||||||
elements such as menus, this may change in the future.
|
and dialogs, so it is becoming a lightweight electron alternative.
|
||||||
|
|
||||||
- Who is this project aimed at?
|
- Who is this project aimed at?
|
||||||
|
|
||||||
@@ -304,11 +278,11 @@ It is recommended at this stage to read the comprehensive documentation at [http
|
|||||||
<a href="https://github.com/SophieAu"><img src="https://github.com/SophieAu.png?size=40" width="40"/></a>
|
<a href="https://github.com/SophieAu"><img src="https://github.com/SophieAu.png?size=40" width="40"/></a>
|
||||||
<a href="https://github.com/alexmat"><img src="https://github.com/alexmat.png?size=40" width="40"/></a>
|
<a href="https://github.com/alexmat"><img src="https://github.com/alexmat.png?size=40" width="40"/></a>
|
||||||
<a href="https://github.com/RH12503"><img src="https://github.com/RH12503.png?size=40" width="40"/></a>
|
<a href="https://github.com/RH12503"><img src="https://github.com/RH12503.png?size=40" width="40"/></a>
|
||||||
<a href="https://github.com/hi019"><img src="https://github.com/hi019.png?size=40" width="40"/></a></a>
|
<a href="https://github.com/hi019"><img src="https://github.com/hi019.png?size=40" width="40"/></a>
|
||||||
<a href="https://github.com/Igogrek"><img src="https://github.com/Igogrek.png?size=40" width="40"/></a></a>
|
<a href="https://github.com/Igogrek"><img src="https://github.com/Igogrek.png?size=40" width="40"/></a>
|
||||||
<a href="https://github.com/aschey"><img src="https://github.com/aschey.png?size=40" width="40"/></a></a>
|
<a href="https://github.com/aschey"><img src="https://github.com/aschey.png?size=40" width="40"/></a>
|
||||||
<a href="https://github.com/akhudek"><img src="https://github.com/akhudek.png?size=40" width="40"/></a></a>
|
<a href="https://github.com/akhudek"><img src="https://github.com/akhudek.png?size=40" width="40"/></a>
|
||||||
<a href="https://github.com/s12chung"><img src="https://github.com/s12chung.png?size=40" width="40"/></a></a>
|
<a href="https://github.com/s12chung"><img src="https://github.com/s12chung.png?size=40" width="40"/></a>
|
||||||
|
|
||||||
<span id="nav-10"></span>
|
<span id="nav-10"></span>
|
||||||
|
|
||||||
@@ -344,13 +318,13 @@ This project was mainly coded to the following albums:
|
|||||||
## Special Thanks
|
## Special Thanks
|
||||||
|
|
||||||
<p align="center" style="text-align: center">
|
<p align="center" style="text-align: center">
|
||||||
<a href="https://pace.dev"><img src="pace.jpeg"/></a><br/>
|
<a href="https://pace.dev"><img src="/assets/images/pace.jpeg"/></a><br/>
|
||||||
A <i>huge<i/> thanks to <a href="https://pace.dev">Pace</a> for sponsoring the project and helping the efforts to get Wails ported to Apple Silicon!<br/><br/>
|
A <i>huge</i> thanks to <a href="https://pace.dev">Pace</a> for sponsoring the project and helping the efforts to get Wails ported to Apple Silicon!<br/><br/>
|
||||||
If you are looking for a Project Management tool that's powerful but quick and easy to use, check them out!<br/><br/>
|
If you are looking for a Project Management tool that's powerful but quick and easy to use, check them out!<br/><br/>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p align="center" style="text-align: center">
|
<p align="center" style="text-align: center">
|
||||||
A special thank you to JetBrains for donating licenses to us!<br/><br/>
|
A special thank you to JetBrains for donating licenses to us!<br/><br/>
|
||||||
Please click the logo to let them know your appreciation!<br/><br/>
|
Please click the logo to let them know your appreciation!<br/><br/>
|
||||||
<a href="https://www.jetbrains.com?from=Wails"><img src="jetbrains-grayscale.png" width="30%"></a>
|
<a href="https://www.jetbrains.com?from=Wails"><img src="/assets/images/jetbrains-grayscale.png" width="30%"></a>
|
||||||
</p>
|
</p>
|
||||||
|
|||||||
+141
-79
@@ -1,61 +1,101 @@
|
|||||||
<p align="center" style="text-align: center">
|
<p align="center" style="text-align: center">
|
||||||
<img src="logo.png" width="40%"><br/>
|
<img src="logo-universal.png" width="55%"><br/>
|
||||||
</p>
|
</p>
|
||||||
<p align="center">
|
<p align="center">
|
||||||
使用 Go 和 Web 技术构建桌面应用程序。<br/><br/>
|
使用 Go 和 Web 技术构建桌面应用程序。<br/><br/>
|
||||||
<a href="https://github.com/wailsapp/wails/blob/master/LICENSE"><img src="https://img.shields.io/badge/License-MIT-blue.svg"></a>
|
<a href="https://github.com/wailsapp/wails/blob/master/LICENSE">
|
||||||
<a href="https://goreportcard.com/report/github.com/wailsapp/wails"><img src="https://goreportcard.com/badge/github.com/wailsapp/wails"/></a>
|
<img src="https://img.shields.io/badge/License-MIT-blue.svg">
|
||||||
<a href="http://godoc.org/github.com/wailsapp/wails"><img src="https://img.shields.io/badge/godoc-reference-blue.svg"/></a>
|
</a>
|
||||||
<a href="https://www.codefactor.io/repository/github/wailsapp/wails"><img src="https://www.codefactor.io/repository/github/wailsapp/wails/badge" alt="CodeFactor" /></a>
|
<a href="https://goreportcard.com/report/github.com/wailsapp/wails">
|
||||||
<a href="https://github.com/wailsapp/wails/issues"><img src="https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat" alt="CodeFactor" /></a>
|
<img src="https://goreportcard.com/badge/github.com/wailsapp/wails"/>
|
||||||
<a href="https://app.fossa.io/projects/git%2Bgithub.com%2Fwailsapp%2Fwails?ref=badge_shield" alt="FOSSA Status"><img src="https://app.fossa.io/api/projects/git%2Bgithub.com%2Fwailsapp%2Fwails.svg?type=shield"/></a>
|
</a>
|
||||||
<a href="https://houndci.com"><img src="https://img.shields.io/badge/Reviewed_by-Hound-8E64B0.svg"/></a>
|
<a href="http://godoc.org/github.com/wailsapp/wails">
|
||||||
<a href="https://github.com/avelino/awesome-go" rel="nofollow"><img src="https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg" alt="Awesome"></a>
|
<img src="https://img.shields.io/badge/godoc-reference-blue.svg"/>
|
||||||
<a href="https://github.com/wailsapp/wails/workflows/release/badge.svg?branch=master" rel="nofollow"><img src="https://github.com/wailsapp/wails/workflows/release/badge.svg?branch=master" alt="Release Pipelines"></a>
|
</a>
|
||||||
|
<a href="https://www.codefactor.io/repository/github/wailsapp/wails">
|
||||||
|
<img src="https://www.codefactor.io/repository/github/wailsapp/wails/badge" alt="CodeFactor" />
|
||||||
|
</a>
|
||||||
|
<a href="https://github.com/wailsapp/wails/issues">
|
||||||
|
<img src="https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat" alt="CodeFactor" />
|
||||||
|
</a>
|
||||||
|
<a href="https://app.fossa.io/projects/git%2Bgithub.com%2Fwailsapp%2Fwails?ref=badge_shield" alt="FOSSA Status">
|
||||||
|
<img src="https://app.fossa.io/api/projects/git%2Bgithub.com%2Fwailsapp%2Fwails.svg?type=shield"/>
|
||||||
|
</a>
|
||||||
|
<a href="https://houndci.com">
|
||||||
|
<img src="https://img.shields.io/badge/Reviewed_by-Hound-8E64B0.svg"/>
|
||||||
|
</a>
|
||||||
|
<a href="https://github.com/avelino/awesome-go" rel="nofollow">
|
||||||
|
<img src="https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg" alt="Awesome"/>
|
||||||
|
</a>
|
||||||
|
<a href="https://github.com/wailsapp/wails/workflows/release/badge.svg?branch=master" rel="nofollow">
|
||||||
|
<img src="https://github.com/wailsapp/wails/workflows/release/badge.svg?branch=master" alt="Release Pipelines"/>
|
||||||
|
</a>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<span id="nav-1"></span>
|
<span id="nav-1"></span>
|
||||||
|
|
||||||
## 国际化
|
## 国际化
|
||||||
|
|
||||||
[English](README.md) | 简体中文
|
[English](README.md) | [简体中文](README.zh-Hans.md)
|
||||||
|
|
||||||
向 Go 程序提供 Web 接口的传统方法是通过内置 Web 服务器。Wails 提供了一种不同的方法:它提供了将 Go 代码和 Web
|
|
||||||
前端都包装成单个二进制文件的能力。通过提供工具,可以很轻松的完成项目的创建、编译和打包。你所要做的就是发挥创意!
|
|
||||||
|
|
||||||
官方文档可以在 [https://wails.app](https://wails.app) 中找到。
|
|
||||||
|
|
||||||
国内镜像站点 [https://wails.top](https://wails.top)。
|
|
||||||
|
|
||||||
<span id="nav-2"></span>
|
<span id="nav-2"></span>
|
||||||
|
|
||||||
## 内容目录
|
## 内容目录
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>点我 打开/关闭 目录列表</summary>
|
||||||
|
|
||||||
- [1. 国际化](#nav-1)
|
- [1. 国际化](#nav-1)
|
||||||
- [2. 内容目录](#nav-2)
|
- [2. 内容目录](#nav-2)
|
||||||
- [3. 特征](#nav-3)
|
- [3. 项目介绍](#nav-3)
|
||||||
- [4. 赞助商](#nav-4)
|
- [3.1 官方网站](#nav-3-1)
|
||||||
- [5. 安装](#nav-5)
|
- [4. 功能](#nav-4)
|
||||||
- [5.1 MacOS](#nav-5-1)
|
- [5. 赞助商](#nav-5)
|
||||||
- [5.2 Linux](#nav-5-2)
|
|
||||||
- [5.2.1 Debian/Ubuntu](#nav-5-2-1)
|
|
||||||
- [5.2.2 Arch Linux / ArchLabs / Ctlos Linux](#nav-5-2-2)
|
|
||||||
- [5.2.3 Centos](#nav-5-2-3)
|
|
||||||
- [5.2.4 Fedora](#nav-5-2-4)
|
|
||||||
- [5.2.5 VoidLinux & VoidLinux-musl](#nav-5-2-5)
|
|
||||||
- [5.2.6 Gentoo](#nav-5-2-6)
|
|
||||||
- [5.3 Windows](#nav-5-3)
|
|
||||||
- [6. 安装](#nav-6)
|
- [6. 安装](#nav-6)
|
||||||
- [7. 下一步](#nav-7)
|
- [6.1 MacOS](#nav-6-1)
|
||||||
|
- [6.2 Linux](#nav-6-2)
|
||||||
|
- [6.2.1 Debian/Ubuntu](#nav-6-2-1)
|
||||||
|
- [6.2.2 Arch Linux / ArchLabs / Ctlos Linux](#nav-6-2-2)
|
||||||
|
- [6.2.3 Centos](#nav-6-2-3)
|
||||||
|
- [6.2.4 Fedora](#nav-6-2-4)
|
||||||
|
- [6.2.5 VoidLinux & VoidLinux-musl](#nav-6-2-5)
|
||||||
|
- [6.2.6 Gentoo](#nav-6-2-6)
|
||||||
|
- [6.3 Windows](#nav-6-3)
|
||||||
|
- [7. 使用方法](#nav-7)
|
||||||
|
- [7.1 下一步](#nav-7-1)
|
||||||
- [8. 常见问题](#nav-8)
|
- [8. 常见问题](#nav-8)
|
||||||
- [9. 贡献者](#nav-9)
|
- [9. 贡献者](#nav-9)
|
||||||
- [10. 特别提及](#nav-10)
|
- [10. 特别提及](#nav-10)
|
||||||
- [11. 许可协议](#nav-11)
|
- [12. 特别感谢](#nav-11)
|
||||||
- [12. 特别感谢](#nav-12)
|
|
||||||
|
</details>
|
||||||
|
|
||||||
<span id="nav-3"></span>
|
<span id="nav-3"></span>
|
||||||
|
|
||||||
## 特征
|
## 项目介绍
|
||||||
|
|
||||||
|
为 Go 程序提供 Web 界面的传统方法是通过内置 Web 服务器。Wails 提供了一种不同的方法:它提供了将 Go 代码和 Web
|
||||||
|
前端一起打包成单个二进制文件的能力。通过提供的工具,可以很轻松的完成项目的创建、编译和打包。你所要做的就是发挥想象力!
|
||||||
|
|
||||||
|
<span id="nav-3-1"></span>
|
||||||
|
|
||||||
|
### 官方网站
|
||||||
|
|
||||||
|
#### v1
|
||||||
|
|
||||||
|
官方文档可以在 [https://wails.app](https://wails.app) 中找到。
|
||||||
|
|
||||||
|
#### v2
|
||||||
|
|
||||||
|
Wails v2 已针对所有 3 个平台发布了 Beta 版。如果您有兴趣尝试一下,请查看[新网站](https://wails.io)。
|
||||||
|
|
||||||
|
镜像网站:
|
||||||
|
|
||||||
|
- [中国大陆镜像站点 - https://wails.top](https://wails.top)
|
||||||
|
|
||||||
|
<span id="nav-4"></span>
|
||||||
|
|
||||||
|
## 功能
|
||||||
|
|
||||||
- 后端使用标准 Go
|
- 后端使用标准 Go
|
||||||
- 使用任意前端技术构建 UI 界面
|
- 使用任意前端技术构建 UI 界面
|
||||||
@@ -67,15 +107,22 @@
|
|||||||
- 强大的命令行工具
|
- 强大的命令行工具
|
||||||
- 跨多个平台
|
- 跨多个平台
|
||||||
|
|
||||||
<span id="nav-4"></span>
|
<span id="nav-5"></span>
|
||||||
|
|
||||||
## 赞助商
|
## 赞助商
|
||||||
|
|
||||||
这个项目由以下这些人或者公司支持:
|
这个项目由以下这些人或者公司支持:
|
||||||
|
|
||||||
|
|
||||||
<a href="https://github.com/sponsors/leaanthony" style="width:100px;">
|
<a href="https://github.com/sponsors/leaanthony" style="width:100px;">
|
||||||
<img src="sponsors/bronze%20sponsor.png" width="100"/>
|
<img src="/img/silver%20sponsor.png" width="100"/>
|
||||||
|
</a>
|
||||||
|
<a href="https://github.com/selvindev" style="width:100px;">
|
||||||
|
<img src="https://github.com/selvindev.png?size=100" width="100"/>
|
||||||
|
</a>
|
||||||
|
<br/>
|
||||||
|
<br/>
|
||||||
|
<a href="https://github.com/sponsors/leaanthony" style="width:100px;">
|
||||||
|
<img src="img/bronze%20sponsor.png" width="100"/>
|
||||||
</a>
|
</a>
|
||||||
<a href="https://github.com/snider" style="width:100px;">
|
<a href="https://github.com/snider" style="width:100px;">
|
||||||
<img src="https://github.com/snider.png?size=100" width="100"/>
|
<img src="https://github.com/snider.png?size=100" width="100"/>
|
||||||
@@ -83,13 +130,16 @@
|
|||||||
<a href="https://github.com/codydbentley" style="width:100px">
|
<a href="https://github.com/codydbentley" style="width:100px">
|
||||||
<img src="https://github.com/codydbentley.png?size=100" width="100"/>
|
<img src="https://github.com/codydbentley.png?size=100" width="100"/>
|
||||||
</a>
|
</a>
|
||||||
|
<a href="https://www.easywebadv.it/" style="width:100px">
|
||||||
|
<img src="website/static/img/easyweb.png" width="100"/>
|
||||||
|
</a>
|
||||||
<br/>
|
<br/>
|
||||||
<br/>
|
<br/>
|
||||||
<a href="https://github.com/matryer" style="width:100px">
|
<a href="https://github.com/matryer" style="width:100px">
|
||||||
<img src="https://github.com/matryer.png" width="100"/>
|
<img src="https://github.com/matryer.png" width="100"/>
|
||||||
</a>
|
</a>
|
||||||
<a href="https://www.jetbrains.com?from=Wails" style="width:100px">
|
<a href="https://www.jetbrains.com?from=Wails" style="width:100px">
|
||||||
<img src="/img/jetbrains-grayscale.png" width="100"/>
|
<img src="/assets/images/jetbrains-grayscale.png" width="100"/>
|
||||||
</a>
|
</a>
|
||||||
<a href="https://github.com/tc-hib" style="width:55px">
|
<a href="https://github.com/tc-hib" style="width:55px">
|
||||||
<img src="https://github.com/tc-hib.png?size=55" width="55"/>
|
<img src="https://github.com/tc-hib.png?size=55" width="55"/>
|
||||||
@@ -118,9 +168,6 @@
|
|||||||
<a href="https://github.com/bglw" style="width:65px">
|
<a href="https://github.com/bglw" style="width:65px">
|
||||||
<img src="https://github.com/bglw.png?size=65" width="65"/>
|
<img src="https://github.com/bglw.png?size=65" width="65"/>
|
||||||
</a>
|
</a>
|
||||||
<a href="https://github.com/jugglingjsons" style="width:50px">
|
|
||||||
<img src="https://github.com/jugglingjsons.png?size=50" width="50"/>
|
|
||||||
</a>
|
|
||||||
<a href="https://github.com/marcus-crane" style="width:65px">
|
<a href="https://github.com/marcus-crane" style="width:65px">
|
||||||
<img src="https://github.com/marcus-crane.png?size=65" width="65"/>
|
<img src="https://github.com/marcus-crane.png?size=65" width="65"/>
|
||||||
</a>
|
</a>
|
||||||
@@ -133,17 +180,37 @@
|
|||||||
<a href="https://github.com/ilgityildirim" style="width:50px">
|
<a href="https://github.com/ilgityildirim" style="width:50px">
|
||||||
<img src="https://github.com/ilgityildirim.png?size=50" width="50"/>
|
<img src="https://github.com/ilgityildirim.png?size=50" width="50"/>
|
||||||
</a>
|
</a>
|
||||||
<a href="https://github.com/ondoki" style="width:65px">
|
|
||||||
<img src="https://github.com/ondoki.png?size=65" width="65"/>
|
|
||||||
</a>
|
|
||||||
<a href="https://github.com/questrail" style="width:50px">
|
<a href="https://github.com/questrail" style="width:50px">
|
||||||
<img src="https://github.com/questrail.png?size=50" width="50"/>
|
<img src="https://github.com/questrail.png?size=50" width="50"/>
|
||||||
</a>
|
</a>
|
||||||
<a href="https://github.com/DonTomato" style="width:45px">
|
<a href="https://github.com/DonTomato" style="width:45px">
|
||||||
<img src="https://github.com/DonTomato.png?size=45" width="45"/>
|
<img src="https://github.com/DonTomato.png?size=45" width="45"/>
|
||||||
</a>
|
</a>
|
||||||
|
<a href="https://github.com/taigrr" style="width:55px">
|
||||||
<span id="nav-5"></span>
|
<img src="https://github.com/taigrr.png?size=55" width="55"/>
|
||||||
|
</a>
|
||||||
|
<a href="https://github.com/charlie-dee" style="width:55px">
|
||||||
|
<img src="https://github.com/charlie-dee.png?size=55" width="55"/>
|
||||||
|
</a>
|
||||||
|
<a href="https://github.com/EdenNetworkItalia" style="width:65px">
|
||||||
|
<img src="https://github.com/EdenNetworkItalia.png?size=65" width="65"/>
|
||||||
|
</a>
|
||||||
|
<a href="https://github.com/michaelolson1996" style="width:55px">
|
||||||
|
<img src="https://github.com/michaelolson1996.png?size=55" width="55"/>
|
||||||
|
</a>
|
||||||
|
<a href="https://github.com/GargantuaX" style="width:45px">
|
||||||
|
<img src="https://github.com/GargantuaX.png?size=45" width="45"/>
|
||||||
|
</a>
|
||||||
|
<a href="https://github.com/CharlieGo88" style="width:55px">
|
||||||
|
<img src="https://github.com/CharlieGo88.png?size=55" width="55"/>
|
||||||
|
</a>
|
||||||
|
<a href="https://github.com/Bironou" style="width:55px">
|
||||||
|
<img src="https://github.com/Bironou.png?size=55" width="55"/>
|
||||||
|
</a>
|
||||||
|
<a href="https://github.com/Shackelford-Arden" style="width:55px">
|
||||||
|
<img src="https://github.com/Shackelford-Arden.png?size=55" width="55"/>
|
||||||
|
</a>
|
||||||
|
<span id="nav-6"></span>
|
||||||
|
|
||||||
## 安装
|
## 安装
|
||||||
|
|
||||||
@@ -152,7 +219,7 @@ Wails 使用 cgo 与原生渲染引擎结合,因此需要依赖一些平台的
|
|||||||
- Go 1.16
|
- Go 1.16
|
||||||
- npm
|
- npm
|
||||||
|
|
||||||
<span id="nav-5-1"></span>
|
<span id="nav-6-1"></span>
|
||||||
|
|
||||||
### MacOS
|
### MacOS
|
||||||
|
|
||||||
@@ -160,11 +227,11 @@ Wails 使用 cgo 与原生渲染引擎结合,因此需要依赖一些平台的
|
|||||||
|
|
||||||
`xcode-select --install`
|
`xcode-select --install`
|
||||||
|
|
||||||
<span id="nav-5-2"></span>
|
<span id="nav-6-2"></span>
|
||||||
|
|
||||||
### Linux
|
### Linux
|
||||||
|
|
||||||
<span id="nav-5-2-1"></span>
|
<span id="nav-6-2-1"></span>
|
||||||
|
|
||||||
#### Debian/Ubuntu
|
#### Debian/Ubuntu
|
||||||
|
|
||||||
@@ -176,7 +243,7 @@ _Ubuntu: 16.04, 18.04, 19.04_
|
|||||||
|
|
||||||
_也成功测试了: Zorin 15, Parrot 4.7, Linuxmint 19, Elementary 5, Kali, Neon_, Pop!\_OS
|
_也成功测试了: Zorin 15, Parrot 4.7, Linuxmint 19, Elementary 5, Kali, Neon_, Pop!\_OS
|
||||||
|
|
||||||
<span id="nav-5-2-2"></span>
|
<span id="nav-6-2-2"></span>
|
||||||
|
|
||||||
#### Arch Linux / ArchLabs / Ctlos Linux
|
#### Arch Linux / ArchLabs / Ctlos Linux
|
||||||
|
|
||||||
@@ -184,7 +251,7 @@ _也成功测试了: Zorin 15, Parrot 4.7, Linuxmint 19, Elementary 5, Kali, Neo
|
|||||||
|
|
||||||
_也成功测试了: Manjaro & ArcoLinux_
|
_也成功测试了: Manjaro & ArcoLinux_
|
||||||
|
|
||||||
<span id="nav-5-2-3"></span>
|
<span id="nav-6-2-3"></span>
|
||||||
|
|
||||||
#### Centos
|
#### Centos
|
||||||
|
|
||||||
@@ -192,7 +259,7 @@ _也成功测试了: Manjaro & ArcoLinux_
|
|||||||
|
|
||||||
_CentOS 6, 7_
|
_CentOS 6, 7_
|
||||||
|
|
||||||
<span id="nav-5-2-4"></span>
|
<span id="nav-6-2-4"></span>
|
||||||
|
|
||||||
#### Fedora
|
#### Fedora
|
||||||
|
|
||||||
@@ -200,39 +267,39 @@ _CentOS 6, 7_
|
|||||||
|
|
||||||
_Fedora 29, 30_
|
_Fedora 29, 30_
|
||||||
|
|
||||||
<span id="nav-5-2-5"></span>
|
<span id="nav-6-2-5"></span>
|
||||||
|
|
||||||
#### VoidLinux & VoidLinux-musl
|
#### VoidLinux & VoidLinux-musl
|
||||||
|
|
||||||
`xbps-install gtk+3-devel webkit2gtk-devel`
|
`xbps-install gtk+3-devel webkit2gtk-devel`
|
||||||
|
|
||||||
<span id="nav-5-2-6"></span>
|
<span id="nav-6-2-6"></span>
|
||||||
|
|
||||||
#### Gentoo
|
#### Gentoo
|
||||||
|
|
||||||
`sudo emerge gtk+:3 webkit-gtk`
|
`sudo emerge gtk+:3 webkit-gtk`
|
||||||
|
|
||||||
<span id="nav-5-3"></span>
|
<span id="nav-6-3"></span>
|
||||||
|
|
||||||
### Windows
|
### Windows
|
||||||
|
|
||||||
Windows 需要 GCC 和相关工具。 建议从 [http://tdm-gcc.tdragon.net/download](http://tdm-gcc.tdragon.net/download) 下载, 安装完成,您就可以开始了。
|
Windows 需要 GCC 和相关工具。 建议从 [http://tdm-gcc.tdragon.net/download](http://tdm-gcc.tdragon.net/download) 下载, 安装完成,您就可以开始了。
|
||||||
|
|
||||||
<span id="nav-6"></span>
|
<span id="nav-7"></span>
|
||||||
|
|
||||||
## 安装
|
## 使用方法
|
||||||
|
|
||||||
**确保 Go modules 是开启的:GO111MODULE=on 并且 go/bin 在您的 PATH 变量中。**
|
**确保 Go modules 是开启的:GO111MODULE=on 并且 go/bin 在您的 PATH 变量中。**
|
||||||
|
|
||||||
安装很简单,运行以下命令:
|
安装很简单,运行以下命令:
|
||||||
|
|
||||||
<pre style='color:white'>
|
```
|
||||||
go get -u github.com/wailsapp/wails/cmd/wails
|
go get -u github.com/wailsapp/wails/cmd/wails
|
||||||
</pre>
|
```
|
||||||
|
|
||||||
<span id="nav-7"></span>
|
<span id="nav-7-1"></span>
|
||||||
|
|
||||||
## 下一步
|
### 下一步
|
||||||
|
|
||||||
建议在此时阅读 [https://wails.app](https://wails.app) 上面的文档.
|
建议在此时阅读 [https://wails.app](https://wails.app) 上面的文档.
|
||||||
|
|
||||||
@@ -244,14 +311,14 @@ go get -u github.com/wailsapp/wails/cmd/wails
|
|||||||
|
|
||||||
取决于您的要求。它旨在使 Go 程序员可以轻松制作轻量级桌面应用程序或在其现有应用程序中添加前端。尽管 Wails 当前不提供对诸如菜单之类的原生元素的钩子,但将来可能会改变。
|
取决于您的要求。它旨在使 Go 程序员可以轻松制作轻量级桌面应用程序或在其现有应用程序中添加前端。尽管 Wails 当前不提供对诸如菜单之类的原生元素的钩子,但将来可能会改变。
|
||||||
|
|
||||||
- 这个项目针对的是谁?
|
- 这个项目针对的是哪些人?
|
||||||
|
|
||||||
希望将 HTML / JS / CSS 前端与其应用程序捆绑在一起的程序员,而不是借助创建服务并打开浏览器进行查看的方式。
|
希望将 HTML / JS / CSS 前端与其应用程序捆绑在一起的程序员,而不是借助创建服务并打开浏览器进行查看的方式。
|
||||||
|
|
||||||
- 名字怎么来的?
|
- 名字怎么来的?
|
||||||
|
|
||||||
当我看到 WebView 时,我想"我真正想要的是围绕构建 WebView 应用程序工作,有点像 Rails 对于 Ruby"。因此,最初它是一个文字游戏(Webview on
|
当我看到 WebView 时,我想"我真正想要的是围绕构建 WebView 应用程序工作,有点像 Rails 对于 Ruby"。因此,最初它是一个文字游戏(Webview on
|
||||||
Rails)。碰巧也是我来自的 [国家](https://en.wikipedia.org/wiki/Wales) 的英文名字的同音。所以就是他了。
|
Rails)。碰巧也是我来自的 [国家](https://en.wikipedia.org/wiki/Wales) 的英文名字的同音。所以就是它了。
|
||||||
|
|
||||||
<span id="nav-9"></span>
|
<span id="nav-9"></span>
|
||||||
|
|
||||||
@@ -298,10 +365,11 @@ go get -u github.com/wailsapp/wails/cmd/wails
|
|||||||
<a href="https://github.com/SophieAu"><img src="https://github.com/SophieAu.png?size=40" width="40"/></a>
|
<a href="https://github.com/SophieAu"><img src="https://github.com/SophieAu.png?size=40" width="40"/></a>
|
||||||
<a href="https://github.com/alexmat"><img src="https://github.com/alexmat.png?size=40" width="40"/></a>
|
<a href="https://github.com/alexmat"><img src="https://github.com/alexmat.png?size=40" width="40"/></a>
|
||||||
<a href="https://github.com/RH12503"><img src="https://github.com/RH12503.png?size=40" width="40"/></a>
|
<a href="https://github.com/RH12503"><img src="https://github.com/RH12503.png?size=40" width="40"/></a>
|
||||||
<a href="https://github.com/hi019"><img src="https://github.com/hi019.png?size=40" width="40"/></a></a>
|
<a href="https://github.com/hi019"><img src="https://github.com/hi019.png?size=40" width="40"/></a>
|
||||||
<a href="https://github.com/Igogrek"><img src="https://github.com/Igogrek.png?size=40" width="40"/></a></a>
|
<a href="https://github.com/Igogrek"><img src="https://github.com/Igogrek.png?size=40" width="40"/></a>
|
||||||
<a href="https://github.com/aschey"><img src="https://github.com/aschey.png?size=40" width="40"/></a></a>
|
<a href="https://github.com/aschey"><img src="https://github.com/aschey.png?size=40" width="40"/></a>
|
||||||
<a href="https://github.com/akhudek"><img src="https://github.com/akhudek.png?size=40" width="40"/></a></a>
|
<a href="https://github.com/akhudek"><img src="https://github.com/akhudek.png?size=40" width="40"/></a>
|
||||||
|
<a href="https://github.com/s12chung"><img src="https://github.com/s12chung.png?size=40" width="40"/></a>
|
||||||
|
|
||||||
<span id="nav-10"></span>
|
<span id="nav-10"></span>
|
||||||
|
|
||||||
@@ -311,9 +379,9 @@ go get -u github.com/wailsapp/wails/cmd/wails
|
|||||||
|
|
||||||
- [Dustin Krysak](https://wiki.ubuntu.com/bashfulrobot) - 他的支持和反馈是巨大的。
|
- [Dustin Krysak](https://wiki.ubuntu.com/bashfulrobot) - 他的支持和反馈是巨大的。
|
||||||
- [Serge Zaitsev](https://github.com/zserge) - Wails 窗口所使用的 [Webview](https://github.com/zserge/webview) 的作者。
|
- [Serge Zaitsev](https://github.com/zserge) - Wails 窗口所使用的 [Webview](https://github.com/zserge/webview) 的作者。
|
||||||
- [Byron](https://github.com/bh90210) - 有时,Byron 单枪匹马地保持这个项目活着。没有他令人难以置信的投入,我们永远不会得到 v1 。
|
- [Byron](https://github.com/bh90210) - 有时,Byron 一个人保持这个项目活跃着。没有他令人难以置信的投入,我们永远不会得到 v1 。
|
||||||
|
|
||||||
This project was mainly coded to the following albums:
|
编写项目代码时伴随着以下专辑:
|
||||||
|
|
||||||
- [Manic Street Preachers - Resistance Is Futile](https://open.spotify.com/album/1R2rsEUqXjIvAbzM0yHrxA)
|
- [Manic Street Preachers - Resistance Is Futile](https://open.spotify.com/album/1R2rsEUqXjIvAbzM0yHrxA)
|
||||||
- [Manic Street Preachers - This Is My Truth, Tell Me Yours](https://open.spotify.com/album/4VzCL9kjhgGQeKCiojK1YN)
|
- [Manic Street Preachers - This Is My Truth, Tell Me Yours](https://open.spotify.com/album/4VzCL9kjhgGQeKCiojK1YN)
|
||||||
@@ -331,22 +399,16 @@ This project was mainly coded to the following albums:
|
|||||||
|
|
||||||
<span id="nav-11"></span>
|
<span id="nav-11"></span>
|
||||||
|
|
||||||
## 许可协议
|
|
||||||
|
|
||||||
[](https://app.fossa.io/projects/git%2Bgithub.com%2Fwailsapp%2Fwails?ref=badge_large)
|
|
||||||
|
|
||||||
<span id="nav-12"></span>
|
|
||||||
|
|
||||||
## 特别感谢
|
## 特别感谢
|
||||||
|
|
||||||
<p align="center" style="text-align: center">
|
<p align="center" style="text-align: center">
|
||||||
<a href="https://pace.dev"><img src="pace.jpeg"/></a><br/>
|
<a href="https://pace.dev"><img src="/assets/images/pace.jpeg"/></a><br/>
|
||||||
<i>非常<i/>感谢<a href="https://pace.dev">Pace</a>对项目的赞助,并帮助将 Wails 移植到 Apple Silicon !<br/><br/>
|
<i>非常</i> 感谢<a href="https://pace.dev">Pace</a>对项目的赞助,并帮助将 Wails 移植到 Apple Silicon !<br/><br/>
|
||||||
如果您正在寻找一个强大并且快速和易于使用的项目管理工具,可以看看他们!<br/><br/>
|
如果您正在寻找一个强大并且快速和易于使用的项目管理工具,可以看看他们!<br/><br/>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p align="center" style="text-align: center">
|
<p align="center" style="text-align: center">
|
||||||
特别感谢 JetBrains 向我们捐赠许可!<br/><br/>
|
特别感谢 JetBrains 向我们捐赠许可!<br/><br/>
|
||||||
请点击 logo 让他们知道你的感激之情!<br/><br/>
|
请点击 logo 让他们知道你的感激之情!<br/><br/>
|
||||||
<a href="https://www.jetbrains.com?from=Wails"><img src="jetbrains-grayscale.png" width="30%"></a>
|
<a href="https://www.jetbrains.com?from=Wails"><img src="/assets/images/jetbrains-grayscale.png" width="30%"></a>
|
||||||
</p>
|
</p>
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 103 KiB After Width: | Height: | Size: 103 KiB |
|
Before Width: | Height: | Size: 34 KiB After Width: | Height: | Size: 34 KiB |
|
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 3.1 KiB |
@@ -6,7 +6,6 @@ import (
|
|||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
"io/ioutil"
|
|
||||||
"log"
|
"log"
|
||||||
"os"
|
"os"
|
||||||
"path"
|
"path"
|
||||||
@@ -50,7 +49,7 @@ func (fs *FSHelper) FileExists(path string) bool {
|
|||||||
|
|
||||||
// FindFile returns the first occurrence of match inside path.
|
// FindFile returns the first occurrence of match inside path.
|
||||||
func (fs *FSHelper) FindFile(path, match string) (string, error) {
|
func (fs *FSHelper) FindFile(path, match string) (string, error) {
|
||||||
files, err := ioutil.ReadDir(path)
|
files, err := os.ReadDir(path)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
@@ -69,7 +68,7 @@ func (fs *FSHelper) FindFile(path, match string) (string, error) {
|
|||||||
func (fs *FSHelper) CreateFile(filename string, data []byte) error {
|
func (fs *FSHelper) CreateFile(filename string, data []byte) error {
|
||||||
// Ensure directory exists
|
// Ensure directory exists
|
||||||
fs.MkDirs(filepath.Dir(filename))
|
fs.MkDirs(filepath.Dir(filename))
|
||||||
return ioutil.WriteFile(filename, data, 0644)
|
return os.WriteFile(filename, data, 0644)
|
||||||
}
|
}
|
||||||
|
|
||||||
// MkDirs creates the given nested directories.
|
// MkDirs creates the given nested directories.
|
||||||
@@ -149,21 +148,11 @@ func (fs *FSHelper) LocalDir(dir string) (*Dir, error) {
|
|||||||
}, err
|
}, err
|
||||||
}
|
}
|
||||||
|
|
||||||
// LoadRelativeFile loads the given file relative to the caller's directory
|
|
||||||
func (fs *FSHelper) LoadRelativeFile(relativePath string) ([]byte, error) {
|
|
||||||
_, filename, _, _ := runtime.Caller(0)
|
|
||||||
fullPath, err := filepath.Abs(filepath.Join(path.Dir(filename), relativePath))
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
return ioutil.ReadFile(fullPath)
|
|
||||||
}
|
|
||||||
|
|
||||||
// GetSubdirs will return a list of FQPs to subdirectories in the given directory
|
// GetSubdirs will return a list of FQPs to subdirectories in the given directory
|
||||||
func (d *Dir) GetSubdirs() (map[string]string, error) {
|
func (d *Dir) GetSubdirs() (map[string]string, error) {
|
||||||
|
|
||||||
// Read in the directory information
|
// Read in the directory information
|
||||||
fileInfo, err := ioutil.ReadDir(d.fullPath)
|
fileInfo, err := os.ReadDir(d.fullPath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
@@ -215,7 +204,7 @@ func (fs *FSHelper) SaveAsJSON(data interface{}, filename string) error {
|
|||||||
e.SetIndent("", " ")
|
e.SetIndent("", " ")
|
||||||
e.Encode(data)
|
e.Encode(data)
|
||||||
|
|
||||||
err := ioutil.WriteFile(filename, buf.Bytes(), 0755)
|
err := os.WriteFile(filename, buf.Bytes(), 0755)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
@@ -231,7 +220,7 @@ func (fs *FSHelper) LoadAsString(filename string) (string, error) {
|
|||||||
|
|
||||||
// LoadAsBytes returns the contents of the file as a byte slice
|
// LoadAsBytes returns the contents of the file as a byte slice
|
||||||
func (fs *FSHelper) LoadAsBytes(filename string) ([]byte, error) {
|
func (fs *FSHelper) LoadAsBytes(filename string) ([]byte, error) {
|
||||||
return ioutil.ReadFile(filename)
|
return os.ReadFile(filename)
|
||||||
}
|
}
|
||||||
|
|
||||||
// FileMD5 returns the md5sum of the given file
|
// FileMD5 returns the md5sum of the given file
|
||||||
|
|||||||
+2
-2
@@ -3,7 +3,7 @@ package cmd
|
|||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
"io/ioutil"
|
"io"
|
||||||
"net/http"
|
"net/http"
|
||||||
"sort"
|
"sort"
|
||||||
)
|
)
|
||||||
@@ -28,7 +28,7 @@ func (g *GitHubHelper) GetVersionTags() ([]*SemanticVersion, error) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return result, err
|
return result, err
|
||||||
}
|
}
|
||||||
body, err := ioutil.ReadAll(resp.Body)
|
body, err := io.ReadAll(resp.Body)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return result, err
|
return result, err
|
||||||
}
|
}
|
||||||
|
|||||||
+5
-3
@@ -2,7 +2,6 @@ package cmd
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"io/ioutil"
|
|
||||||
"net/url"
|
"net/url"
|
||||||
"os"
|
"os"
|
||||||
"runtime"
|
"runtime"
|
||||||
@@ -75,7 +74,8 @@ const (
|
|||||||
NixOS
|
NixOS
|
||||||
// Artix linux distribution
|
// Artix linux distribution
|
||||||
ArtixLinux
|
ArtixLinux
|
||||||
|
//Uos distribution
|
||||||
|
Uos
|
||||||
)
|
)
|
||||||
|
|
||||||
// DistroInfo contains all the information relating to a linux distribution
|
// DistroInfo contains all the information relating to a linux distribution
|
||||||
@@ -96,7 +96,7 @@ func GetLinuxDistroInfo() *DistroInfo {
|
|||||||
}
|
}
|
||||||
_, err := os.Stat("/etc/os-release")
|
_, err := os.Stat("/etc/os-release")
|
||||||
if !os.IsNotExist(err) {
|
if !os.IsNotExist(err) {
|
||||||
osRelease, _ := ioutil.ReadFile("/etc/os-release")
|
osRelease, _ := os.ReadFile("/etc/os-release")
|
||||||
result = parseOsRelease(string(osRelease))
|
result = parseOsRelease(string(osRelease))
|
||||||
}
|
}
|
||||||
return result
|
return result
|
||||||
@@ -192,6 +192,8 @@ func parseOsRelease(osRelease string) *DistroInfo {
|
|||||||
result.Distribution = NixOS
|
result.Distribution = NixOS
|
||||||
case "artix":
|
case "artix":
|
||||||
result.Distribution = ArtixLinux
|
result.Distribution = ArtixLinux
|
||||||
|
case "uos":
|
||||||
|
result.Distribution = Uos
|
||||||
default:
|
default:
|
||||||
result.Distribution = Unknown
|
result.Distribution = Unknown
|
||||||
}
|
}
|
||||||
|
|||||||
+5
-5
@@ -1,11 +1,15 @@
|
|||||||
package cmd
|
package cmd
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
_ "embed"
|
||||||
"log"
|
"log"
|
||||||
|
|
||||||
"gopkg.in/yaml.v3"
|
"gopkg.in/yaml.v3"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
//go:embed linuxdb.yaml
|
||||||
|
var LinuxDBYaml []byte
|
||||||
|
|
||||||
// LinuxDB is the database for linux distribution data.
|
// LinuxDB is the database for linux distribution data.
|
||||||
type LinuxDB struct {
|
type LinuxDB struct {
|
||||||
Distributions map[string]*Distribution `yaml:"distributions"`
|
Distributions map[string]*Distribution `yaml:"distributions"`
|
||||||
@@ -78,14 +82,10 @@ func (l *LinuxDB) GetDistro(distro string) *Distribution {
|
|||||||
// NewLinuxDB creates a new LinuxDB instance from the bundled
|
// NewLinuxDB creates a new LinuxDB instance from the bundled
|
||||||
// linuxdb.yaml file.
|
// linuxdb.yaml file.
|
||||||
func NewLinuxDB() *LinuxDB {
|
func NewLinuxDB() *LinuxDB {
|
||||||
data, err := fs.LoadRelativeFile("./linuxdb.yaml")
|
|
||||||
if err != nil {
|
|
||||||
log.Fatal("Could not load linuxdb.yaml")
|
|
||||||
}
|
|
||||||
result := LinuxDB{
|
result := LinuxDB{
|
||||||
Distributions: make(map[string]*Distribution),
|
Distributions: make(map[string]*Distribution),
|
||||||
}
|
}
|
||||||
err = result.ImportData(data)
|
err := result.ImportData(LinuxDBYaml)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -100,6 +100,15 @@ distributions:
|
|||||||
gccversioncommand: *gccdumpfullversion
|
gccversioncommand: *gccdumpfullversion
|
||||||
programs: *debiandefaultprograms
|
programs: *debiandefaultprograms
|
||||||
libraries: *debiandefaultlibraries
|
libraries: *debiandefaultlibraries
|
||||||
|
uos:
|
||||||
|
id: uos
|
||||||
|
releases:
|
||||||
|
default:
|
||||||
|
version: default
|
||||||
|
name: Uos
|
||||||
|
gccversioncommand: *gccdumpfullversion
|
||||||
|
programs: *debiandefaultprograms
|
||||||
|
libraries: *debiandefaultlibraries
|
||||||
void:
|
void:
|
||||||
id: void
|
id: void
|
||||||
releases:
|
releases:
|
||||||
|
|||||||
+13
-12
@@ -7,7 +7,6 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"image"
|
"image"
|
||||||
"image/png"
|
"image/png"
|
||||||
"io/ioutil"
|
|
||||||
"os"
|
"os"
|
||||||
"path"
|
"path"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
@@ -244,7 +243,7 @@ func (b *PackageHelper) packageOSX(po *ProjectOptions) error {
|
|||||||
// No - create a new plist from our defaults
|
// No - create a new plist from our defaults
|
||||||
tmpl := template.New("infoPlist")
|
tmpl := template.New("infoPlist")
|
||||||
plistFile := filepath.Join(b.getPackageFileBaseDir(), "info.plist")
|
plistFile := filepath.Join(b.getPackageFileBaseDir(), "info.plist")
|
||||||
infoPlist, err := ioutil.ReadFile(plistFile)
|
infoPlist, err := os.ReadFile(plistFile)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
@@ -258,13 +257,13 @@ func (b *PackageHelper) packageOSX(po *ProjectOptions) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Save to the package
|
// Save to the package
|
||||||
err = ioutil.WriteFile(plistFilename, tpl.Bytes(), 0644)
|
err = os.WriteFile(plistFilename, tpl.Bytes(), 0644)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
// Also write to project directory for customisation
|
// Also write to project directory for customisation
|
||||||
err = ioutil.WriteFile(customPlist, tpl.Bytes(), 0644)
|
err = os.WriteFile(customPlist, tpl.Bytes(), 0644)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
@@ -314,10 +313,12 @@ func (b *PackageHelper) PackageWindows(po *ProjectOptions, cleanUp bool) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
// Generate icon from PNG
|
// Generate icon from PNG if it doesn't exist
|
||||||
err = generateWindowsIcon(icon, basename+".ico")
|
if !fs.FileExists(basename + ".ico") {
|
||||||
if err != nil {
|
err = generateWindowsIcon(icon, basename+".ico")
|
||||||
return err
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Copy manifest
|
// Copy manifest
|
||||||
@@ -334,12 +335,12 @@ func (b *PackageHelper) PackageWindows(po *ProjectOptions, cleanUp bool) error {
|
|||||||
tgtRCFile := filepath.Join(outputDir, basename+".rc")
|
tgtRCFile := filepath.Join(outputDir, basename+".rc")
|
||||||
if !b.fs.FileExists(tgtRCFile) {
|
if !b.fs.FileExists(tgtRCFile) {
|
||||||
srcRCfile := filepath.Join(b.getPackageFileBaseDir(), "wails.rc")
|
srcRCfile := filepath.Join(b.getPackageFileBaseDir(), "wails.rc")
|
||||||
rcfilebytes, err := ioutil.ReadFile(srcRCfile)
|
rcfilebytes, err := os.ReadFile(srcRCfile)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
rcfiledata := strings.Replace(string(rcfilebytes), "$NAME$", basename, -1)
|
rcfiledata := strings.Replace(string(rcfilebytes), "$NAME$", basename, -1)
|
||||||
err = ioutil.WriteFile(tgtRCFile, []byte(rcfiledata), 0755)
|
err = os.WriteFile(tgtRCFile, []byte(rcfiledata), 0755)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
@@ -387,11 +388,11 @@ func (b *PackageHelper) copyIcon() (string, error) {
|
|||||||
|
|
||||||
// Install default icon
|
// Install default icon
|
||||||
iconfile := filepath.Join(b.getPackageFileBaseDir(), "icon.png")
|
iconfile := filepath.Join(b.getPackageFileBaseDir(), "icon.png")
|
||||||
iconData, err := ioutil.ReadFile(iconfile)
|
iconData, err := os.ReadFile(iconfile)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
err = ioutil.WriteFile(srcIcon, iconData, 0644)
|
err = os.WriteFile(srcIcon, iconData, 0644)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-3
@@ -3,7 +3,6 @@ package cmd
|
|||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
"io/ioutil"
|
|
||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"runtime"
|
"runtime"
|
||||||
@@ -310,14 +309,14 @@ func (po *ProjectOptions) WriteProjectConfig() error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
return ioutil.WriteFile(targetFile, filedata, 0600)
|
return os.WriteFile(targetFile, filedata, 0600)
|
||||||
}
|
}
|
||||||
|
|
||||||
// LoadConfig loads the project configuration file from the
|
// LoadConfig loads the project configuration file from the
|
||||||
// given directory
|
// given directory
|
||||||
func (po *ProjectOptions) LoadConfig(projectDir string) error {
|
func (po *ProjectOptions) LoadConfig(projectDir string) error {
|
||||||
targetFile := filepath.Join(projectDir, "project.json")
|
targetFile := filepath.Join(projectDir, "project.json")
|
||||||
rawBytes, err := ioutil.ReadFile(targetFile)
|
rawBytes, err := os.ReadFile(targetFile)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user