Code Monkey home page Code Monkey logo

Comments (10)

ant31 avatar ant31 commented on July 17, 2024

The binary is already compiled for windows with appyvor, but looks like it didn't not trigger latest releases).

What we weere missing is the powershell script.
related issue: app-registry/appr-helm-plugin#14

from appr.

ant31 avatar ant31 commented on July 17, 2024

Could you submit your Powershell script ?

from appr.

sbueringer avatar sbueringer commented on July 17, 2024

We've implemented parts of the script to get it to work on our machines. Unfortunately we skipped the "download"part. But we'll add this very soon (today or tomorrow) and I'll post the whole script. For now, that's the part that just invokes the appr.exe

function Appr_Helm($helm_args){
    Invoke-Expression "$Env:HELM_PLUGIN_DIR/appr.exe $helm_args --media-type=helm"
}

if(!(Test-Path $Env:HELM_PLUGIN_DIR)){
    $Env:HELM_PLUGIN_DIR="$Env:HOME/.helm/plugins/registry"
}

switch ($args[0]) {
    "install" { Invoke-Expression "$Env:HELM_PLUGIN_DIR/appr.exe helm install $args" }
    "upgrade" { Invoke-Expression "$Env:HELM_PLUGIN_DIR/appr.exe helm dep $args" }
    "dep"     { Invoke-Expression "$Env:HELM_PLUGIN_DIR/appr.exe helm dep $args" }
    "pull"    { Invoke-Expression "$Env:HELM_PLUGIN_DIR/appr.exe pull --media-type helm $args" }
    { @("push", "list", "show", "delete-package", "inspect") -contains $_ } { Appr_Helm $args }
    default { Invoke-Expression "$Env:HELM_PLUGIN_DIR/appr.exe $args"}
}

from appr.

ant31 avatar ant31 commented on July 17, 2024

@sbueringer would you be able to help me building the branch #50 on windows ?
It has c dependency (to compile) and I keep failing to find the configuration for build it on https://www.appveyor.com/

from appr.

sbueringer avatar sbueringer commented on July 17, 2024

@ant31 I'll try later today

from appr.

sbueringer avatar sbueringer commented on July 17, 2024

@ant31. I didn't got it to work.

I tried it directly on Windows .appveyor.yaml and in Cygwin .appveyor.cygwin.yaml. In both cases it came down to compilation errors in jsonnet (log).

Maybe it's related to this issue in jsonnet.

from appr.

ant31 avatar ant31 commented on July 17, 2024

@sbueringer yes it's related to jsonnet, I'm working on it.
I removed this dependency for the windows build for now.

from appr.

ant31 avatar ant31 commented on July 17, 2024

@sbueringer Are you still using Appr? if yes, I've released a 'windows' build in https://github.com/app-registry/appr-helm-plugin/releases/tag/v0.7.0, using your powershell script (with few modifications to reflect latest changes).

Would you be able to validate that is working ?

from appr.

sbueringer avatar sbueringer commented on July 17, 2024

@ant31
I tested the script, made some fixes and it now works (at least on my machine :)). I've opened an PR (app-registry/appr-helm-plugin#43).

The packaged release should also be verified again, as I just checked out the repository, changed the plugin.yaml and fixed the .ps1 script.

from appr.

sbueringer avatar sbueringer commented on July 17, 2024

@ant31 Could you please create a new release (of appr-helm-plugin) with the merged branch. This would make it easier for me to recommend the usage of the appr-helm-plugin on Windows to my colleagues :)

from appr.

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.