GithubHelp home page GithubHelp logo

hhy5277 / webwindow Goto Github PK

View Code? Open in Web Editor NEW

This project forked from stevesandersonms/webwindow

0.0 1.0 0.0 545 KB

.NET Core library to open native OS windows containing web UI on Windows, Mac, and Linux. Experimental.

License: Apache License 2.0

TypeScript 59.07% JavaScript 1.52% C# 25.14% C++ 7.37% Objective-C 1.80% Objective-C++ 2.47% HTML 1.76% CSS 0.86%

webwindow's Introduction

WebWindow

For information, see this blog post.

Usage instructions

You don't need to build this repo yourself, unless you want to change the WebWindow library itself. If you just want to use it in an app, grab the prebuilt NuGet package or follow these 'hello world' example steps.

Samples

For samples, open the WebWindow.Samples.sln solution

These projects reference the prebuilt NuGet package so can be built without building the native code in this repo.

How to build this repo

If you want to build the WebWindow library itself, you will need:

  • Windows, Mac, or Linux
  • Node.js (because WebWindow.Blazor.JS includes TypeScript code, so the build process involves calling Node to perform a Webpack build)
  • If you're on Windows:
    • Use Visual Studio with C++ support enabled. You must build in x64 configuration (not AnyCPU, which is the default).
    • If things don't seem to be updating, try right-clicking one of the testassets projects and choose Rebuild to force it to rebuild the native assets.
  • If you're on macOS:
    • Install Xcode so that you have the whole gcc toolchain available on the command line.
    • Then you can cd testassets/HelloWorldApp and dotnet run - this should build the native assets automatically.
  • If you're on Linux (tested with Ubuntu 18.04):
    • Install dependencies: sudo apt-get update && sudo apt-get install libgtk-3-dev libwebkit2gtk-4.0-dev
    • Then you can cd testassets/HelloWorldApp and dotnet run - this should build the native assets automatically.
  • If you're on Windows Subsystem for Linux (WSL), then as well as the above, you will need a local X server (example setup).

webwindow's People

Contributors

stevesandersonms avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.