diff --git a/.github/assets/demo/demo-dark.gif b/.github/assets/demo/demo-dark.gif new file mode 100644 index 0000000..37c464d Binary files /dev/null and b/.github/assets/demo/demo-dark.gif differ diff --git a/.github/assets/demo/demo-dark.mp4 b/.github/assets/demo/demo-dark.mp4 new file mode 100644 index 0000000..7a23523 Binary files /dev/null and b/.github/assets/demo/demo-dark.mp4 differ diff --git a/.github/assets/demo/demo-dark.tape b/.github/assets/demo/demo-dark.tape new file mode 100644 index 0000000..e2ad35a --- /dev/null +++ b/.github/assets/demo/demo-dark.tape @@ -0,0 +1,39 @@ +Output .github/assets/demo/demo-dark.mp4 +Output .github/assets/demo/demo-dark.gif + +Set Theme "rose-pine-moon" +Set Shell "bash" +Set FontSize 32 +Set Width 1920 +Set Height 750 + +Hide +Type "export PATH=$(pwd)/target/debug:$PATH" Enter +Type "rm -rf $HOME/pixi-pack-example" Enter +Type "mkdir -p $HOME/pixi-pack-example" Enter +Type "cp examples/simple-python/pixi.* $HOME/pixi-pack-example" Enter +Type "pushd $HOME/pixi-pack-example" Enter +Type "clear" Enter +Sleep 1s +Show + +Type@150ms "ls" Sleep 1s Enter +Sleep 3s + +Type@150ms "pixi-pack pack" Sleep 1s Enter +Sleep 5s + +Type "ls" Sleep 1s Enter +Sleep 3s + +Type@150ms "pixi-pack unpack environment.tar" Sleep 1s Enter +Sleep 4s + +Type@150ms "ls" Sleep 1s Enter +Sleep 4s + +Type@150ms "source activate.sh" Sleep 1s Enter +Sleep 3s + +Type@150ms "which python" Sleep 1s Enter +Sleep 10s diff --git a/.github/assets/demo/demo-light.gif b/.github/assets/demo/demo-light.gif new file mode 100644 index 0000000..f0e3f6e Binary files /dev/null and b/.github/assets/demo/demo-light.gif differ diff --git a/.github/assets/demo/demo-light.mp4 b/.github/assets/demo/demo-light.mp4 new file mode 100644 index 0000000..a85105b Binary files /dev/null and b/.github/assets/demo/demo-light.mp4 differ diff --git a/.github/assets/demo/demo-light.tape b/.github/assets/demo/demo-light.tape new file mode 100644 index 0000000..98353f8 --- /dev/null +++ b/.github/assets/demo/demo-light.tape @@ -0,0 +1,39 @@ +Output .github/assets/demo/demo-light.mp4 +Output .github/assets/demo/demo-light.gif + +Set Theme "rose-pine-dawn" +Set Shell "bash" +Set FontSize 32 +Set Width 1920 +Set Height 750 + +Hide +Type "export PATH=$(pwd)/target/debug:$PATH" Enter +Type "rm -rf $HOME/pixi-pack-example" Enter +Type "mkdir -p $HOME/pixi-pack-example" Enter +Type "cp examples/simple-python/pixi.* $HOME/pixi-pack-example" Enter +Type "pushd $HOME/pixi-pack-example" Enter +Type "clear" Enter +Sleep 1s +Show + +Type@150ms "ls" Sleep 1s Enter +Sleep 3s + +Type@150ms "pixi-pack pack" Sleep 1s Enter +Sleep 5s + +Type "ls" Sleep 1s Enter +Sleep 3s + +Type@150ms "pixi-pack unpack environment.tar" Sleep 1s Enter +Sleep 4s + +Type@150ms "ls" Sleep 1s Enter +Sleep 4s + +Type@150ms "source activate.sh" Sleep 1s Enter +Sleep 3s + +Type@150ms "which python" Sleep 1s Enter +Sleep 10s diff --git a/README.md b/README.md index a4a483c..a371e53 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,9 @@ +![pixi-pack demo](.github/assets/demo/demo-light.gif#gh-light-mode-only) +![pixi-pack demo](.github/assets/demo/demo-dark.gif#gh-dark-mode-only) + ## 🗂 Table of Contents - [Introduction](#-introduction) diff --git a/pixi.toml b/pixi.toml index 36323dd..4c0730a 100644 --- a/pixi.toml +++ b/pixi.toml @@ -19,6 +19,11 @@ compilers = ">=1.7.0" conda = "*" micromamba = "*" +# [feature.demo.dependencies] +# vhs = "*" +# [feature.demo.tasks] +# demo = "vhs .github/assets/demo/demo-light.tape && vhs .github/assets/demo/demo-dark.tape" + [feature.lint.dependencies] pre-commit = "*" prettier = "*" @@ -31,4 +36,5 @@ pre-commit-run = "pre-commit run -a" [environments] default = ["lint", "test"] +# demo = { features = ["demo"], no-default-feature = true } lint = { features = ["lint"], no-default-feature = true }