Coder Social home page Coder Social logo

Comments (12)

Lunchb0ne avatar Lunchb0ne commented on August 22, 2024 2

Yeah, It's perfect, thanks for the hard work @tech189!

from versions.

rashil2000 avatar rashil2000 commented on August 22, 2024 1

Hey @tech189, would you like to take this one too?

No hurries though, just asking for help in clearing some backlog :)

from versions.

rashil2000 avatar rashil2000 commented on August 22, 2024 1

Okay. So in a pre_install step, we will have to extract all files in the $PLUGINSDIR directory that end with .tar.xz and .tar.lzma, into the root directory:

image

from versions.

rashil2000 avatar rashil2000 commented on August 22, 2024 1

Example: https://github.com/chawyehsu/dorado/blob/master/bucket/nuwen-mingw-gcc.json

from versions.

rasa avatar rasa commented on August 22, 2024 1

See also https://github.com/mapleafgo/scoop-bucket/blob/master/bucket/tdm-gcc.json . I'm not suggesting using this, but just pointing it out for reference.

from versions.

rasa avatar rasa commented on August 22, 2024 1

See also https://github.com/rivy/scoop-bucket/blob/master/[email protected] . Same caveat.

from versions.

rashil2000 avatar rashil2000 commented on August 22, 2024 1

Yup, we don't need it, since we'll already be having an env_add_path in the manifest

from versions.

tech189 avatar tech189 commented on August 22, 2024

This is certainly a tricky one! I got checkver working, which I hope covers the non-standard versioning they use. As for the installation, it looks like there's a ton of compressed files that get extracted and then their bins which are registered, plus some start menu shortcuts, see the installation log below.

Manifest so far:

{
    "version": "10.3.0",
    "description": "GCC compiler, Windows-friendly",
    "homepage": "https://jmeubank.github.io/tdm-gcc/",
    "license": "CC0-1.0",
    "architecture": {
        "64bit": {
            "url": "https://github.com/jmeubank/tdm-gcc/releases/download/v10.3.0-tdm64-2/tdm64-gcc-10.3.0-2.exe#dl.7z",
            "hash": "819c7a1f74d45ad04e10662e1a2c3124d13d9a2bca508847692251242cd455c3"
        },
        "32bit": {
            "url": "https://github.com/jmeubank/tdm-gcc/releases/download/v10.3.0-tdm-1/tdm-gcc-10.3.0.exe#dl.7z",
            "hash": "f6ed81c0e1cc4199ecf0488446f2396e20a56d731a0c80899afcd41ffb2c0e1c"
        }
    },
    "checkver": {
        "regex": "MinGW-w64 based.+\\s.+download\\/(?<win64>v(?<version>[\\d.]+).+\\/tdm64-gcc-[\\d.-]+.exe)\".+\\s.+\\s.+download\\/(?<win32>v.+\\/tdm-gcc-[\\d.-]+.exe)\""
    },
    "autoupdate": {
        "architecture": {
            "64bit": {
                "url": "https://github.com/jmeubank/tdm-gcc/releases/download/$matchWin64#dl.7z"
            },
            "32bit": {
                "url": "https://github.com/jmeubank/tdm-gcc/releases/download/$matchWin32#dl.7z"
            }
        }
    }
}

Installation log:

https://gist.github.com/tech189/41ce746b3dd541f625b9d89be7a6efd1

Edit:
Also found a manual installation instruction list here https://github.com/jmeubank/tdm-distrib/blob/master/tdm64/core/README-gcc-tdm64.md#manual-installation

from versions.

tech189 avatar tech189 commented on August 22, 2024

Thanks for your help guys, I'm almost there, just trying to recreate a shortcut that the installer does in the last step. It creates a shortcut that has the target of %comspec% /k ""C:\TDM-GCC-64\mingwvars.bat"" but scoop needs an exe/bat that is located in the installation dir so I can't specify cmd.exe in the shortcut like so:

"shortcuts": [
        [
            "cmd.exe",
            "MinGW Command Prompt",
            "/k \"$dir\\mingwvars.bat\""
        ]
    ],

I tried just putting the bat file as the shortcut but for some reason it opens and immediately exits. If I double click the bat file it doesn't open either, it only works when I run cmd.exe /k "C:\Users\me\scoop\apps\tdm-gcc\current\mingwvars.bat" from a cmd line. Any ideas?

from versions.

rashil2000 avatar rashil2000 commented on August 22, 2024

What does the bat file contain? I think it only contains a command to add TDM GCC's bin directory to PATH. This is why it immediately exits.

So we might not need it.

from versions.

tech189 avatar tech189 commented on August 22, 2024

I think that's exactly what it contains:

@echo.
@echo Setting up environment for using MinGW with GCC from %~dp0.
@set PATH=%~dp0bin;%PATH%

from versions.

tech189 avatar tech189 commented on August 22, 2024

I submitted the PR. It would be great if @Lunchb0ne or someone else who uses GCC could test the bins and PATH, as I do not work with it myself.

from versions.

Related Issues (20)

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.