Electron: creating portable windows application

How to create a portable windows application without an installer from an electron project: Clone the electron-quick-start repo: git clone https://github.com/electron/electron-quick-start yarn Make your application - probably edit main.js to navigate to some URL yarn add electron-packager Edit package.json - update the ’name’ and add a new script ‘packager’: { "name": "my-app-name", ... "scripts": { "start": "electron .", "packager": "electron-packager ./ --platform=win32" } } ’npm start’ will bring up the application ’npm run packager’ will package the app for windows. You will see a new directory ‘my-app-name-win32-x64’ in the top directory of the project, with a my-app-name.exe ...

June 14, 2022

GIT: notatki

git push do repozytorium non-bare Set receive.denyCurrentBranch to ignore, warn or updateInstead (according to your needs) in the remote non-bare repository to allow pushing the current branch. # Config receive.denyCurrentBranch to ignore in the remote repository # The configuration is applied to only this respository. $ git config receive.denyCurrentBranch ignore # Config receive.denyCurrentBranch to updateInstead in the remote repository $ git config receive.denyCurrentBranch updateInstead

May 30, 2022

PHP, python: serwer WWW uruchamiany z wiersza poleceń

Jak szybko uruchomić serwer WWW z wiersza poleceń? kilka sposobów: PHP php -S 127.0.0.1:8080 -t ./www python # python 3.x python -m http.server 8080 # python 2.X python -m SimpleHTTPServer 8080 źródła https://gist.github.com/willurd/5720255 - Big list of http static server one-liners

May 25, 2022

PHP: test połączenia z MSSQL

<?php $serverName = "127.0.0.1,1433"; //serverNameinstanceName, portNumber (default is 1433) $connectionInfo = array( "Database"=>"demo", "UID"=>"sa", "PWD"=>"pass"); $conn = sqlsrv_connect( $serverName, $connectionInfo); if( $conn ) { echo "Connection established.<br />"; }else{ echo "Connection could not be established.<br />"; die( print_r( sqlsrv_errors(), true)); } ?>

May 23, 2022

Git: linki

Linki do materiałów dotyczących git-a https://stormit.pl/git/

May 21, 2022