Git Product home page Git Product logo

Comments (9)

sayedihashimi avatar sayedihashimi commented on June 25, 2024

Resolved by commit c0e4107.

Usage

To override the temp directory in the same PowerShell window that you will execute publish-interactive.ps1 declare the following.
$pkgWebOptions["tempFolder"]="C:\Temp\publish\temp"

If you are using PublishConfiguration.ps1 you can set this value in that file as well.

Files

Until the fix is released the .nupkg file is at https://dl.dropbox.com/u/40134810/PackageWeb/PackageWeb.1.1.7.nupkg

The new version of publish-interactive.ps1 is available at https://raw.github.com/sayedihashimi/package-web/c0e4107479de2885aabf4ed8ccceb4cc31ebaea9/Powershell/Publish-Interactive.ps1

from package-web.

tbehunin avatar tbehunin commented on June 25, 2024

I can't seem to get this to work as expected. I added the following to the PublishConfiguration.ps1 (along with the other $settingsFromUser parameters):

$pkgWebOptions =@()
$pkgWebOptions += @{name="tempFolder";value="C:\Temp\Publish"}

When the code executes, I get the following output:

PS C:\dev\Learning.com\Platform_Trunk\src\EasyTech\Platform Web\obj\Dev\Package> .\Publish-Interactive.ps1
Detected parameters file, you will not be prompted for parameters. File= [C:\dev\Learning.com\Platform_Trunk\src\EasyTech\Platform Web\obj\Dev\Package\PublishConfiguration.ps1]
Zip file for publishing: [Learning.Com.Web.zip]
Using temp foler [C:\Users\tbehunin\AppData\Local\Temp]
Temp folder [C:\Users\tbehunin\AppData\Local\Temp\Learning.Com.Web_zip]
Deleting temp folder [C:\Users\tbehunin\AppData\Local\Temp\Learning.Com.Web_zip]
Creating temp directory [C:\Users\tbehunin\AppData\Local\Temp\Learning.Com.Web_zip]

As you can see, it still uses the value from $env:Temp (line 671 in Publish-Interactive.ps1). For some reason, $pkgWebOptions is null when the following code on line 673 is evaluated:

if($pkgWebOptions -and $pkgWebOptions["tempFolder"]){

from package-web.

sayedihashimi avatar sayedihashimi commented on June 25, 2024

I've got a bug here, thanks for letting me know. The fix is straight forward but I don't have the time at this minute to make it.

In the mean time in the publishconfiguration.ps1 you can declare the temp folder in the following manner.

$global:pkgWebOptions =@{}
$global:pkgWebOptions["tempFolder"]="C:\temp\publish\01\a"

from package-web.

sayedihashimi avatar sayedihashimi commented on June 25, 2024

I have fixed this. You can now override the temp folder used by adding the following PublishConfiguration.ps1

$global:pkgWebOptions =@{}
$global:pkgWebOptions["tempFolder"]="C:\temp\publish\01\a"

You can find a drop for testing at https://dl.dropbox.com/u/40134810/PackageWeb/issue-31/PackageWeb.zip. Please re-open if you still have issues.

from package-web.

tbehunin avatar tbehunin commented on June 25, 2024

Nice! Thanks!

from package-web.

sayedihashimi avatar sayedihashimi commented on June 25, 2024

U have a preference as to which bug I work on next?

from package-web.

tbehunin avatar tbehunin commented on June 25, 2024

Definitely #48. We can't get PackageWeb to work at all in our automated CI environment. Works fine though when executing it manually.

from package-web.

sayedihashimi avatar sayedihashimi commented on June 25, 2024

OK cool, I'll look into that one next. I'm already about half way through #42 so will finish that one first, then move on to your issue. That one may take some time, I get the feeling it won't be an easy fix :(

from package-web.

sayedihashimi avatar sayedihashimi commented on June 25, 2024

Sorry couldn't get to #48 today, but I did also resolve #42 today. Got to run and have to work on my book for the next few days. Let me know if you have any issues with the fixed. #48 will be next.

from package-web.

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.