mirror of
https://github.com/taigrr/wails.git
synced 2026-04-14 19:01:09 -07:00
Compare commits
10 Commits
obfuscatio
...
v2.0.0-bet
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ddeac08991 | ||
|
|
30e12d681c | ||
|
|
f9fce9f2a7 | ||
|
|
9c5bb8c6eb | ||
|
|
f2ab409284 | ||
|
|
7c190810fd | ||
|
|
2b2cd21674 | ||
|
|
f025234c85 | ||
|
|
44035637f7 | ||
|
|
008a5c70b9 |
@@ -107,8 +107,8 @@ Click [here](https://wails.io) if you are interested in trying out v2 Beta for W
|
|||||||
This project is supported by these kind people / companies:
|
This project is supported by these kind people / companies:
|
||||||
|
|
||||||
<p align="center">
|
<p align="center">
|
||||||
<a href="https://www.easywebadv.it/" style="width:100px;">
|
<a href="https://www.easywebadv.it/" style="width:150px;">
|
||||||
<img src="website/static/img/easyweb.png" width="100"/>
|
<img src="website/static/img/easyweb.png" width="150"/>
|
||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
<br/>
|
<br/>
|
||||||
@@ -195,6 +195,9 @@ This project is supported by these kind people / companies:
|
|||||||
<a href="https://github.com/taigrr" style="width:45px">
|
<a href="https://github.com/taigrr" style="width:45px">
|
||||||
<img src="https://github.com/taigrr.png?size=45" width="45"/>
|
<img src="https://github.com/taigrr.png?size=45" width="45"/>
|
||||||
</a>
|
</a>
|
||||||
|
<a href="https://github.com/charlie-dee" style="width:55px">
|
||||||
|
<img src="https://github.com/charlie-dee.png?size=55" width="55"/>
|
||||||
|
</a>
|
||||||
|
|
||||||
<span id="nav-6"></span>
|
<span id="nav-6"></span>
|
||||||
|
|
||||||
|
|||||||
@@ -111,7 +111,7 @@
|
|||||||
|
|
||||||
<p align="center">
|
<p align="center">
|
||||||
<a href="https://www.easywebadv.it/" style="width:100px;">
|
<a href="https://www.easywebadv.it/" style="width:100px;">
|
||||||
<img src="website/static/img/easyweb.png" width="100"/>
|
<img src="website/static/img/easyweb.png" width="120"/>
|
||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
<br/>
|
<br/>
|
||||||
@@ -198,6 +198,9 @@
|
|||||||
<a href="https://github.com/taigrr" style="width:45px">
|
<a href="https://github.com/taigrr" style="width:45px">
|
||||||
<img src="https://github.com/taigrr.png?size=45" width="45"/>
|
<img src="https://github.com/taigrr.png?size=45" width="45"/>
|
||||||
</a>
|
</a>
|
||||||
|
<a href="https://github.com/charlie-dee" style="width:55px">
|
||||||
|
<img src="https://github.com/charlie-dee.png?size=55" width="55"/>
|
||||||
|
</a>
|
||||||
|
|
||||||
<span id="nav-6"></span>
|
<span id="nav-6"></span>
|
||||||
|
|
||||||
|
|||||||
@@ -38,6 +38,9 @@ func AddBuildSubcommand(app *clir.Cli, w io.Writer) {
|
|||||||
compilerCommand := "go"
|
compilerCommand := "go"
|
||||||
command.StringFlag("compiler", "Use a different go compiler to build, eg go1.15beta1", &compilerCommand)
|
command.StringFlag("compiler", "Use a different go compiler to build, eg go1.15beta1", &compilerCommand)
|
||||||
|
|
||||||
|
skipModTidy := false
|
||||||
|
command.BoolFlag("m", "Skip mod tidy before compile", &skipModTidy)
|
||||||
|
|
||||||
compress := false
|
compress := false
|
||||||
command.BoolFlag("upx", "Compress final binary with UPX (if installed)", &compress)
|
command.BoolFlag("upx", "Compress final binary with UPX (if installed)", &compress)
|
||||||
|
|
||||||
@@ -167,6 +170,7 @@ func AddBuildSubcommand(app *clir.Cli, w io.Writer) {
|
|||||||
Pack: !noPackage,
|
Pack: !noPackage,
|
||||||
LDFlags: ldflags,
|
LDFlags: ldflags,
|
||||||
Compiler: compilerCommand,
|
Compiler: compilerCommand,
|
||||||
|
SkipModTidy: skipModTidy,
|
||||||
Verbosity: verbosity,
|
Verbosity: verbosity,
|
||||||
ForceBuild: forceBuild,
|
ForceBuild: forceBuild,
|
||||||
IgnoreFrontend: skipFrontend,
|
IgnoreFrontend: skipFrontend,
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
package internal
|
package internal
|
||||||
|
|
||||||
var Version = "v2.0.0-beta.22"
|
var Version = "v2.0.0-beta.23"
|
||||||
|
|||||||
@@ -12,6 +12,7 @@
|
|||||||
#import <WebKit/WebKit.h>
|
#import <WebKit/WebKit.h>
|
||||||
|
|
||||||
#if __has_include(<UniformTypeIdentifiers/UTType.h>)
|
#if __has_include(<UniformTypeIdentifiers/UTType.h>)
|
||||||
|
#define USE_NEW_FILTERS
|
||||||
#import <UniformTypeIdentifiers/UTType.h>
|
#import <UniformTypeIdentifiers/UTType.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -500,10 +500,14 @@
|
|||||||
#ifdef USE_NEW_FILTERS
|
#ifdef USE_NEW_FILTERS
|
||||||
NSMutableArray *contentTypes = [[NSMutableArray new] autorelease];
|
NSMutableArray *contentTypes = [[NSMutableArray new] autorelease];
|
||||||
for (NSString *filter in filterList) {
|
for (NSString *filter in filterList) {
|
||||||
UTType *t = [UTType typeWithFilenameExtension:filter];
|
if (@available(macOS 11.0, *)) {
|
||||||
[contentTypes addObject:t];
|
UTType *t = [UTType typeWithFilenameExtension:filter];
|
||||||
|
[contentTypes addObject:t];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
if (@available(macOS 11.0, *)) {
|
||||||
[dialog setAllowedContentTypes:contentTypes];
|
[dialog setAllowedContentTypes:contentTypes];
|
||||||
|
}
|
||||||
#else
|
#else
|
||||||
[dialog setAllowedFileTypes:filterList];
|
[dialog setAllowedFileTypes:filterList];
|
||||||
#endif
|
#endif
|
||||||
@@ -562,7 +566,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Filters - semicolon delimited list of file extensions
|
// Filters - semicolon delimited list of file extensions
|
||||||
if( filters != nil ) {
|
if( filters != nil && [filters length] > 0) {
|
||||||
filters = [filters stringByReplacingOccurrencesOfString:@"*." withString:@""];
|
filters = [filters stringByReplacingOccurrencesOfString:@"*." withString:@""];
|
||||||
filters = [filters stringByReplacingOccurrencesOfString:@" " withString:@""];
|
filters = [filters stringByReplacingOccurrencesOfString:@" " withString:@""];
|
||||||
NSArray *filterList = [filters componentsSeparatedByString:@";"];
|
NSArray *filterList = [filters componentsSeparatedByString:@";"];
|
||||||
|
|||||||
@@ -32,7 +32,8 @@ void processCallback(int callbackID) {
|
|||||||
void processURLRequest(void *ctx, const char* url) {
|
void processURLRequest(void *ctx, const char* url) {
|
||||||
NSLog(@"processURLRequest called");
|
NSLog(@"processURLRequest called");
|
||||||
const char myByteArray[] = { 0x3c,0x68,0x31,0x3e,0x48,0x65,0x6c,0x6c,0x6f,0x20,0x57,0x6f,0x72,0x6c,0x64,0x21,0x3c,0x2f,0x68,0x31,0x3e };
|
const char myByteArray[] = { 0x3c,0x68,0x31,0x3e,0x48,0x65,0x6c,0x6c,0x6f,0x20,0x57,0x6f,0x72,0x6c,0x64,0x21,0x3c,0x2f,0x68,0x31,0x3e };
|
||||||
ProcessURLResponse(ctx, url, "text/html", (void*)myByteArray, 21);
|
// void *inctx, const char *url, int statusCode, const char *contentType, void* data, int datalength
|
||||||
|
ProcessURLResponse(ctx, url, 200, "text/html", (void*)myByteArray, 21);
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned char _Users_username_Pictures_SaltBae_png[] = {
|
unsigned char _Users_username_Pictures_SaltBae_png[] = {
|
||||||
|
|||||||
@@ -3,13 +3,15 @@ package build
|
|||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/wailsapp/wails/v2/internal/system"
|
|
||||||
"os"
|
"os"
|
||||||
"os/exec"
|
"os/exec"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"runtime"
|
"runtime"
|
||||||
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
|
"github.com/wailsapp/wails/v2/internal/system"
|
||||||
|
|
||||||
"github.com/leaanthony/gosod"
|
"github.com/leaanthony/gosod"
|
||||||
wailsRuntime "github.com/wailsapp/wails/v2/internal/frontend/runtime"
|
wailsRuntime "github.com/wailsapp/wails/v2/internal/frontend/runtime"
|
||||||
"github.com/wailsapp/wails/v2/internal/frontend/runtime/wrapper"
|
"github.com/wailsapp/wails/v2/internal/frontend/runtime/wrapper"
|
||||||
@@ -196,15 +198,17 @@ func (b *BaseBuilder) CompileProject(options *Options) error {
|
|||||||
|
|
||||||
verbose := options.Verbosity == VERBOSE
|
verbose := options.Verbosity == VERBOSE
|
||||||
// Run go mod tidy first
|
// Run go mod tidy first
|
||||||
cmd := exec.Command(options.Compiler, "mod", "tidy")
|
if !options.SkipModTidy {
|
||||||
cmd.Stderr = os.Stderr
|
cmd := exec.Command(options.Compiler, "mod", "tidy")
|
||||||
if verbose {
|
cmd.Stderr = os.Stderr
|
||||||
println("")
|
if verbose {
|
||||||
cmd.Stdout = os.Stdout
|
println("")
|
||||||
}
|
cmd.Stdout = os.Stdout
|
||||||
err = cmd.Run()
|
}
|
||||||
if err != nil {
|
err = cmd.Run()
|
||||||
return err
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Default go build command
|
// Default go build command
|
||||||
@@ -278,7 +282,7 @@ func (b *BaseBuilder) CompileProject(options *Options) error {
|
|||||||
options.CompiledBinary = compiledBinary
|
options.CompiledBinary = compiledBinary
|
||||||
|
|
||||||
// Create the command
|
// Create the command
|
||||||
cmd = exec.Command(options.Compiler, commands.AsSlice()...)
|
cmd := exec.Command(options.Compiler, commands.AsSlice()...)
|
||||||
cmd.Stderr = os.Stderr
|
cmd.Stderr = os.Stderr
|
||||||
if verbose {
|
if verbose {
|
||||||
println(" Build command:", commands.Join(" "))
|
println(" Build command:", commands.Join(" "))
|
||||||
@@ -320,13 +324,18 @@ func (b *BaseBuilder) CompileProject(options *Options) error {
|
|||||||
return "1"
|
return "1"
|
||||||
})
|
})
|
||||||
if options.Platform == "darwin" {
|
if options.Platform == "darwin" {
|
||||||
// Determine verison
|
// Determine version so we can link to newer frameworks
|
||||||
|
// Why doesn't CGO have this option?!?!
|
||||||
info, err := system.GetInfo()
|
info, err := system.GetInfo()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
versionSplit := strings.Split(info.OS.Version, ".")
|
versionSplit := strings.Split(info.OS.Version, ".")
|
||||||
addUTIFramework := versionSplit[0] == "11"
|
majorVersion, err := strconv.Atoi(versionSplit[0])
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
addUTIFramework := majorVersion >= 11
|
||||||
// Set the minimum Mac SDK to 10.13
|
// Set the minimum Mac SDK to 10.13
|
||||||
cmd.Env = upsertEnv(cmd.Env, "CGO_LDFLAGS", func(v string) string {
|
cmd.Env = upsertEnv(cmd.Env, "CGO_LDFLAGS", func(v string) string {
|
||||||
if v != "" {
|
if v != "" {
|
||||||
|
|||||||
@@ -37,6 +37,7 @@ type Options struct {
|
|||||||
Platform string // The platform to build for
|
Platform string // The platform to build for
|
||||||
Arch string // The architecture to build for
|
Arch string // The architecture to build for
|
||||||
Compiler string // The compiler command to use
|
Compiler string // The compiler command to use
|
||||||
|
SkipModTidy bool // Skip mod tidy before compile
|
||||||
IgnoreFrontend bool // Indicates if the frontend does not need building
|
IgnoreFrontend bool // Indicates if the frontend does not need building
|
||||||
OutputFile string // Override the output filename
|
OutputFile string // Override the output filename
|
||||||
BuildDirectory string // Directory to use for building the application
|
BuildDirectory string // Directory to use for building the application
|
||||||
|
|||||||
19
website/docs/community/showcase/riftshare.mdx
Normal file
19
website/docs/community/showcase/riftshare.mdx
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
|
||||||
|
# RiftShare
|
||||||
|
|
||||||
|
<p style={{"text-align": "center"}}>
|
||||||
|
<img src="/img/showcase/riftshare-main.webp"></img><br/>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
Easy, Secure, and Free file sharing for everyone. Learn more at [Riftshare.app](https://riftshare.app)
|
||||||
|
|
||||||
|
## Features
|
||||||
|
|
||||||
|
* Easy secure file sharing between computers both in the local network and through the internet
|
||||||
|
* Supports sending files or directories securely through the [magic wormhole protocol](https://magic-wormhole.readthedocs.io/en/latest/)
|
||||||
|
* Compatible with all other apps using magic wormhole (magic-wormhole or wormhole-william CLI, wormhole-gui, etc.)
|
||||||
|
* Automatic zipping of multiple selected files to send at once
|
||||||
|
* Full animations, progress bar, and cancellation support for sending and receiving
|
||||||
|
* Native OS File Selection
|
||||||
|
* Open files in one click once received
|
||||||
|
* Auto Update - don't worry about having the latest release!
|
||||||
@@ -16,7 +16,7 @@ sidebar_position: 99
|
|||||||
__html: `
|
__html: `
|
||||||
<p align="center">
|
<p align="center">
|
||||||
<a href="https://www.easywebadv.it/" style="width:100px;">
|
<a href="https://www.easywebadv.it/" style="width:100px;">
|
||||||
<img src="/img/easyweb.png" width="100"/>
|
<img src="/img/easyweb.png" width="200"/>
|
||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
<br/>
|
<br/>
|
||||||
@@ -103,6 +103,9 @@ sidebar_position: 99
|
|||||||
<a href="https://github.com/taigrr" style="width:45px">
|
<a href="https://github.com/taigrr" style="width:45px">
|
||||||
<img src="https://github.com/taigrr.png?size=45" width="45"/>
|
<img src="https://github.com/taigrr.png?size=45" width="45"/>
|
||||||
</a>
|
</a>
|
||||||
|
<a href="https://github.com/charlie-dee" style="width:55px">
|
||||||
|
<img src="https://github.com/charlie-dee.png?size=55" width="55"/>
|
||||||
|
</a>
|
||||||
`,
|
`,
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -96,6 +96,9 @@ sidebar_position: 99
|
|||||||
<a href="https://github.com/taigrr" style="width:45px">
|
<a href="https://github.com/taigrr" style="width:45px">
|
||||||
<img src="https://github.com/taigrr.png?size=45" width="45"/>
|
<img src="https://github.com/taigrr.png?size=45" width="45"/>
|
||||||
</a>
|
</a>
|
||||||
|
<a href="https://github.com/charlie-dee" style="width:55px">
|
||||||
|
<img src="https://github.com/charlie-dee.png?size=55" width="55"/>
|
||||||
|
</a>
|
||||||
`,
|
`,
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 6.1 KiB After Width: | Height: | Size: 44 KiB |
BIN
website/static/img/showcase/riftshare-main.webp
Normal file
BIN
website/static/img/showcase/riftshare-main.webp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 16 KiB |
Reference in New Issue
Block a user