Skip to content
This repository has been archived by the owner on Aug 31, 2021. It is now read-only.

Can't deploy by powershell script #150

Open
StayHomeThereIsNoFrance opened this issue Nov 5, 2019 · 0 comments
Open

Can't deploy by powershell script #150

StayHomeThereIsNoFrance opened this issue Nov 5, 2019 · 0 comments

Comments

@StayHomeThereIsNoFrance
Copy link

Description

When deploying by powershell script i get error:

[12:40:30] 馃殌 Deploying file '/scripts/powershell/Microsoft.PowerShell_profile.ps1' to 'copyToProfile.ps1 (Powershell profile path)' ... 馃敟: 'spawnSync copyToProfile.ps1 UNKNOWN' [4 ms]

If i change "app": "copyToProfile.ps1" to "app": "copyToProfile.cmd", it works as expects.

copyToProfile.ps1:

Copy-Item .\scripts\powershell\Microsoft.PowerShell_profile.ps1 "C:\Users\trofimov\Documents\WindowsPowerShell" -force

copyToProfile.cmd

powershell -Command "Copy-Item .\scripts\powershell\Microsoft.PowerShell_profile.ps1 C:\Users\trofimov\Documents\WindowsPowerShell\ -force"

Example config

{
"deploy.reloaded": {
"packages": [
{
"name": "Powershell profile",
"description": "Powershell profile",

            "files": [
                "/scripts/powershell/Microsoft.PowerShell_profile.ps1"
            ],
            "deployOnSave": [ "Powershell profile path" ]
        }
    ],

    "targets": [
        {
            "type": "app",
            "name": "Powershell profile path",
            "app": "copyToProfile.ps1",
            "runInTerminal": true,
            "useRelativePaths": true,
            "submitFileList": false,
            "platforms": [ "win32" ]
        }
    ]
}

}

Your environment

  • Operating system: Windows 10
  • Visual Studio Code version:

Version: 1.39.0 (system setup)
Commit: 9df03c6d6ce97c6645c5846f6dfa2a6a7d276515
Date: 2019-10-09T06:58:04.439Z
Electron: 4.2.10
Chrome: 69.0.3497.128
Node.js: 10.11.0
V8: 6.9.427.31-electron.0
OS: Windows_NT x64 10.0.18362

  • Extension version: 0.89.0
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant