File tree 3 files changed +15
-4
lines changed
3 files changed +15
-4
lines changed Original file line number Diff line number Diff line change 14
14
- uses : DeterminateSystems/magic-nix-cache-action@v2
15
15
- run : nix build
16
16
- name : Prepare to upload
17
- run : cp ./ result/* sqlnotebook-${{ github.sha }}.vsix
17
+ run : cp result sqlnotebook-${{ github.sha }}.vsix
18
18
- name : Upload vsix as artifact
19
19
uses : actions/upload-artifact@v1
20
20
with :
Original file line number Diff line number Diff line change 14
14
run : echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
15
15
- run : nix build
16
16
- name : Prepare to upload
17
- run : cp ./ result/* sqlnotebook-${{ env.RELEASE_VERSION }}.vsix
17
+ run : cp result sqlnotebook-${{ env.RELEASE_VERSION }}.vsix
18
18
- name : Upload vsix as artifact
19
19
uses : actions/upload-artifact@v1
20
20
with :
Original file line number Diff line number Diff line change 51
51
'' ;
52
52
nodejs = pkgs . nodejs ;
53
53
buildCommands = [ "npm run build" ] ;
54
+ buildInputs = with pkgs ; [ zip unzip ] ;
54
55
installPhase = ''
55
- mkdir -p $out
56
- cp *.vsix $out/
56
+ # vsce errors when modtime of zipped files are > present
57
+ new_modtime="0101120000" # MMDDhhmmYY (just needs to be fixed and < present)
58
+ mkdir ./tmp
59
+ unzip -q ./*.vsix -d ./tmp
60
+
61
+ for file in $(find ./tmp/ -type f); do
62
+ touch -m "$new_modtime" "$file"
63
+ touch -t "$new_modtime" "$file"
64
+ done
65
+
66
+ cd ./tmp
67
+ zip -q -r $out .
57
68
'' ;
58
69
} ;
59
70
} ;
You can’t perform that action at this time.
0 commit comments