Difference between revisions of "Quick Start/en"

From Ciliz|W4
(Created page with "# Download the latest stable version of the installer from [https://github.com/microsoft/terminal/releases the project page] (the download link is in the Assets drop-down list...")
(Created page with "To run a Debian image on Windows, use Windows Subsystem for Linux (WSL). It is recommended that you use WSL2, which requires Windows 10 build 18917 or later. If you have an ol...")
Line 14: Line 14:
 
See [https://github.com/microsoft/terminal/blob/master/doc/user-docs/UsingJsonSettings.md the Windows Terminal documentation] for more information about customization.
 
See [https://github.com/microsoft/terminal/blob/master/doc/user-docs/UsingJsonSettings.md the Windows Terminal documentation] for more information about customization.
  
Терминал запускается как обычное приложение Windows.
 
  
 
==== Install WSL ====
 
==== Install WSL ====
Для запуска образа Debian под Windows используется Windows Subsystem for Linux (WSL). Рекомендуется использовать WSL2, для которой требуется Windows 10 build 18917 или более поздняя. Если у вас старая сборка Windows 10, то можно работать с WSL1. Разница в том, что на WSL1 некоторые операции выполняются значительно медленнее, чем на WSL2.
+
To run a Debian image on Windows, use Windows Subsystem for Linux (WSL). It is recommended that you use WSL2, which requires Windows 10 build 18917 or later. If you have an old build of Windows 10, then you can work with WSL1. The difference is that on WSL1, some operations are much slower than on WSL2.
Выполните следующие действия:
+
 
* Проверьте/Задействуйте компонент WSL. Для этого в [https://docs.microsoft.com/en-us/powershell/?view=powershell-7 PowerShell] выполните команду:  
+
Follow these steps:
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart  
+
* Check / Enable the WSL component. To do this, in [https://docs.microsoft.com/en-us/powershell/?view=powershell-7 PowerShell], run the command:
* Если можете использовать WSL2, то задействуйте также компонент Virtual Machine Platform:  
+
  dism.exe / online / enable-feature / featurename: Microsoft-Windows-Subsystem-Linux / all / norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
+
* If you can use WSL2, then also use the Virtual Machine Platform component:
* Перезагрузите систему для завершения установки компонентов.
+
  dism.exe / online / enable-feature / featurename: VirtualMachinePlatform / all / norestart
 +
* Reboot the system to complete the installation of components.
  
 
==== Install Debian WSL Image ====
 
==== Install Debian WSL Image ====

Revision as of 11:37, 13 May 2020

Other languages:
English • ‎русский

W4 SDK DEMO Launch Procedure.

Setup environment

The project uses Debian OS, if it is already installed, you can go directly to the Debian environment settings section. For other operating systems, you must follow these steps (or make sure they are completed).

Windows

Install Windows Terminal

s_0034A86D613416109E895A76DA7A4F66C33EEAB8671A5C439351EC00BAE5D5EC_1581002573663_.png

It is not obliged to use Windows Terminal if you prefer another tool skip this section.

  1. Download the latest stable version of the installer from the project page (the download link is in the Assets drop-down list under the changelog)and install the application.
  2. You can configure Windows Terminal by changing the settings.json file. In general, it is located in the directory LocalAppData\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\ or similar one.

See the Windows Terminal documentation for more information about customization.


Install WSL

To run a Debian image on Windows, use Windows Subsystem for Linux (WSL). It is recommended that you use WSL2, which requires Windows 10 build 18917 or later. If you have an old build of Windows 10, then you can work with WSL1. The difference is that on WSL1, some operations are much slower than on WSL2.

Follow these steps:

  • Check / Enable the WSL component. To do this, in PowerShell, run the command:
 dism.exe / online / enable-feature / featurename: Microsoft-Windows-Subsystem-Linux / all / norestart
  • If you can use WSL2, then also use the Virtual Machine Platform component:
 dism.exe / online / enable-feature / featurename: VirtualMachinePlatform / all / norestart
  • Reboot the system to complete the installation of components.

Install Debian WSL Image

Для того чтобы добавить образ Debian, загрузите и установите приложение Debian из Microsoft Store.

Если вы используете WSL2, инициализируйте дистрибутив командой (для WSL1 этот пункт пропускается):

wsl --set-version Debian 2

Mac OS (TBD)

???

Debian environment settings

При работе из другой ОС, запустите Debian (например, через меню Windows Terminal). При первом запуске будет предложено задать имя пользователя и пароль для входа в систему.

Рекомендуется установить последние обновления системы выполнив следующие команды:

sudo apt-get update 
sudo apt-get upgrade

Install Midnight Commander

Если вам не удобно работать с файлами из командной строки, установите Midnight Commander.

sudo apt-get install mc

Install Git

Установите Git:

sudo apt-get install git

Clone SDK

.

Клонируйте репозиторий с SDK:

git clone git@bitbucket.org:ciliz2/w4-sdk-demo.git

Install SDK prerequisites

Для начала работы с SDK перейдите в каталог:

cd w4-sdk-demo

Выполните команду:

./w4 --prereq

Reload Debian instance or subshell.

npm -g install serve

Также может понадобиться установить node web server, если он необходим для вашего проекта.

Build

При использовании WSL1 процесс сборки может быть долгим.

Для сборки проекта используйте следующие команды, находясь в каталоге w4-sdk-demo:

  • Удалить результаты предыдущей сборки: ./w4 --clean
  • Собрать проект (дебажная версия): ./w4 --build

Test Run

Start webserver:

cd deploy
serve -l 8080

Проверьте игру через браузер, набрав в адресной строке:

http://localhost:8080/

Edit source code

Здесь даны общие сведения по работе с SDK. Подробнее работа с кодом разбирается на странице SDK Experiments.

Для работы с кодом можно использовать любую удобную среду. Далее описывается установка и настройка Visual Studio Code, так как это решение позволяет напрямую работать с кодом в Debian Instance, при запуске из вашей основной ОС.

VSCode as IDE

Install Visual Studio Code

Загрузите и установите VSCode для вашей ОС.

Initial setup

  1. Start VSCode and install Remote WSL extension
  2. Connect to Debian WSL
  3. Open SDK workspace
  4. Install All recomemended extensions
  5. Reload IDE and work with code

serve -l 8080