GithubHelp home page GithubHelp logo

gtk_workspace's Introduction

MSYS2 Installation and Configuration Script

This PowerShell script installs MSYS2 and its dependencies, configures the environment for building GTK applications, and sets up Visual Studio Code for development.

Script Overview

  • Administrator Check: Confirms the script is running with Administrator rights.
  • Function Definition: Defines a function to replace strings in files.
  • Download and Install MSYS2:
  • Downloads the MSYS2 installer.
  • Installs MSYS2 to C:/msys64.
  • Removes the installer after installation.
    • Installs GTK4 and development tools using pacman.
  • Directory Configuration:
    • Converts the current directory path to a Unix-style path.
    • Copies the base VS Code configuration to the current directory.
    • Updates paths in the VS Code configuration files with the installation and current directory paths.
  • Clean Up: Removes any existing installation log.
  • Open VS Code: Launches Visual Studio Code.

Usage

Run the script in PowerShell as an Administrator at the base of the repo.

If you can not execute the script you should set the Execution Policy to RemoteSigned.

Be careful and consult Execution Policies!

This is also needed for the proxy script that builds the .exe!

Set-ExecutionPolicy RemoteSigned

You should now be able to run the main.cpp or the main.c file via the playbutton (select "Build and Run GTK Application")

You can set it to Default or any other value by running:

Set-ExecutionPolicy Default

gtk_workspace's People

Contributors

kmankid 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.