Archived Artifact Folder Automatically Unzipped

Andrew Smith's Avatar

Andrew Smith

25 Apr, 2017 06:25 PM

Hello,

I have a post-build script that creates an archive folder that is being deployed successfully, however it's automatically being unzipped on the target machine. How can I prevent the archive from unzipping?

Here's the script:

7z a $env:deploy_name_installer".zip" $env:build_path_installer
Push-AppveyorArtifact $env:deploy_name_installer".zip" -DeploymentName $env:deploy_name_installer

  1. Support Staff 1 Posted by Ilya Finkelshte... on 25 Apr, 2017 07:15 PM

    Ilya Finkelshteyn's Avatar

    Hi Andrew,

    What deployment provider do you use?

    Ilya.

  2. 2 Posted by Andrew Smith on 25 Apr, 2017 07:24 PM

    Andrew Smith's Avatar

    We use the app veyor deployment agent.

  3. Support Staff 3 Posted by Ilya Finkelshte... on 25 Apr, 2017 07:29 PM

    Ilya Finkelshteyn's Avatar

    You are deploying artifact package as a Windows application?

  4. Support Staff 4 Posted by Ilya Finkelshte... on 25 Apr, 2017 07:49 PM

    Ilya Finkelshteyn's Avatar

    Try to do double-zipping then. You can have AppVeyor to do part of zipping job like this:

    after_build:
    - ps: 7z a .\Dist\$env:deploy_name_installer".zip"  $env:build_path_installer
    
    artifacts:
    - path: Dist
      name: $(deploy_name_installer)
    

    This will zip to folder Dist and then that folder will be zipped by AppVeyor and published as artifact wil deployment name deploy_name_installer

  5. 5 Posted by Andrew Smith on 26 Apr, 2017 08:32 PM

    Andrew Smith's Avatar

    This has solved my issue. Thank you

  6. Support Staff 6 Posted by Ilya Finkelshte... on 26 Apr, 2017 08:33 PM

    Ilya Finkelshteyn's Avatar

    Good, thanks for update!

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac