NOTE: WORK IN PROGRESS
This document assumes Windows Insider Preview Dev.
Installing Ubuntu 22.04.1 LTS from Microsoft Store.
| #ifndef WINRT_FORMATTERS_H | |
| #define WINRT_FORMATTERS_H | |
| #include <windows.h> | |
| #include <winrt/base.h> | |
| #include <string> | |
| #include <format> |
| const fs = require('fs').promises; | |
| const path = require('path'); | |
| const cheerio = require('cheerio'); | |
| const sharp = require('sharp'); | |
| const zlib = require('zlib'); | |
| const util = require('util'); | |
| const gzip = util.promisify(zlib.gzip); | |
| async function optimizeAndConvertToDataURI(imagePath, baseDir, useLossless) { |
| $envs = @{ | |
| #"CHROME_EXECUTABLE" = "%ProgramFiles%\Google\Chrome Dev\Application\chrome.exe" | |
| "PACKAGES_ROOT" = "D:\.packages" | |
| "PUB_CACHE" = "%PACKAGES_ROOT%\pub" | |
| "npm_config_cache" = "%PACKAGES_ROOT%\npm" | |
| "NUGET_PACKAGES" = "%PACKAGES_ROOT%\nuget" | |
| "BUN_INSTALL_CACHE_DIR" = "%PACKAGES_ROOT%\bun\install\cache" | |
| "VCPKG_DEFAULT_BINARY_CACHE" = "%PACKAGES_ROOT%\vcpkg" | |
| "PIP_CACHE_DIR" = "%PACKAGES_ROOT%\pip" | |
| "GRADLE_USER_HOME" = "%PACKAGES_ROOT%\.gradle" |
| # Need to enable scripting before executing the file | |
| # Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser -Force | |
| cd ~ | |
| Invoke-RestMethod -Uri https://get.scoop.sh | Invoke-Expression | |
| scoop install git | |
| scoop bucket add java |
| import 'dart:ffi'; | |
| import 'dart:io'; | |
| import 'package:ffi/ffi.dart'; | |
| import 'package:unorm_dart/unorm_dart.dart' as unorm_dart; // fallback | |
| String _getLibicuModuleName() { | |
| if (Platform.isAndroid) { | |
| return 'libicu.so'; | |
| } else if (Platform.isWindows) { |
NOTE: WORK IN PROGRESS
This document assumes Windows Insider Preview Dev.
Installing Ubuntu 22.04.1 LTS from Microsoft Store.
| import 'dart:typed_data'; | |
| import 'dart:ui' as ui; | |
| import 'package:flutter/material.dart'; | |
| void main() => runApp(const MyApp()); | |
| class MyApp extends StatelessWidget { | |
| const MyApp({Key? key}) : super(key: key); |
| void main() { | |
| print('''Multiline | |
| String | |
| can be | |
| directly embedded on the code!'''); | |
| } |