adding package upload and introduced targets in cargo.toml

This commit is contained in:
Falko Zurell 2025-01-17 16:55:56 +01:00
parent 5055fe9af8
commit 4d5fc9c2a7
3 changed files with 11 additions and 0 deletions

1
.gitignore vendored
View file

@ -2,3 +2,4 @@
.DS_Store
Cargo.lock
config.json
.netrc

View file

@ -3,6 +3,9 @@ name = "pixelfed_batch_uploader"
version = "0.1.0"
edition = "2021"
[build]
rustflags = ["--out-dir", "target/output"]
[dependencies]
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"

7
package.sh Executable file
View file

@ -0,0 +1,7 @@
#!/bin/bash -x
RELEASE_VERSION="1.0.1"
curl --netrc \
--upload-file target/$(rustc -vV | grep host | cut -d ' ' -f2)/release/pixelfed_batch_uploader \
https://repos.mxhdr.net/api/packages/maxheadroom/generic/insta-import-pixelfed/$RELEASE_VERSION/pixelfed_batch_uploader.$(rustc -vV | grep host | cut -d ' ' -f2)