adding package upload and introduced targets in cargo.toml
This commit is contained in:
parent
5055fe9af8
commit
4d5fc9c2a7
3 changed files with 11 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -2,3 +2,4 @@
|
||||||
.DS_Store
|
.DS_Store
|
||||||
Cargo.lock
|
Cargo.lock
|
||||||
config.json
|
config.json
|
||||||
|
.netrc
|
||||||
|
|
|
@ -3,6 +3,9 @@ name = "pixelfed_batch_uploader"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
|
[build]
|
||||||
|
rustflags = ["--out-dir", "target/output"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
serde = { version = "1.0", features = ["derive"] }
|
serde = { version = "1.0", features = ["derive"] }
|
||||||
serde_json = "1.0"
|
serde_json = "1.0"
|
||||||
|
|
7
package.sh
Executable file
7
package.sh
Executable 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)
|
Loading…
Add table
Add a link
Reference in a new issue