Skip to content

Commit

Permalink
Merge pull request #68 from olback/0.3
Browse files Browse the repository at this point in the history
0.3
  • Loading branch information
olback authored Nov 3, 2021
2 parents 7a6a265 + a0bd5a9 commit 82fec1b
Show file tree
Hide file tree
Showing 111 changed files with 3,080 additions and 7,332 deletions.
3 changes: 0 additions & 3 deletions .cargo/config

This file was deleted.

92 changes: 54 additions & 38 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ jobs:
- run:
name: Install dependencies
command: |
cd checks
npm install
cd checks
npm install
- save_cache:
name: Save Node Cache
Expand Down Expand Up @@ -60,20 +60,20 @@ jobs:
- run:
name: Show Version
command: |
rustc --version --verbose
rustup --version
cargo --version --verbose
rustc --version --verbose
rustup --version
cargo --version --verbose
- run:
name: Build Binary
command: |
if [ $CIRCLE_BRANCH = "master" ]; then
cd ll-gui && cargo build --release --target=x86_64-unknown-linux-gnu && cd ..
cd ll-cli && cargo build --release --target=x86_64-unknown-linux-gnu && cd ..
else
cd ll-gui && cargo build --target=x86_64-unknown-linux-gnu && cd ..
cd ll-cli && cargo build --target=x86_64-unknown-linux-gnu && cd ..
fi
if [ $CIRCLE_BRANCH = "master" ]; then
cd ll-gui && cargo build --release --target=x86_64-unknown-linux-gnu && cd ..
cd ll-cli && cargo build --release --target=x86_64-unknown-linux-gnu && cd ..
else
cd ll-gui && cargo build --target=x86_64-unknown-linux-gnu && cd ..
cd ll-cli && cargo build --target=x86_64-unknown-linux-gnu && cd ..
fi
- save_cache:
name: Save Linux Rust Cache
Expand All @@ -86,35 +86,47 @@ jobs:
- run:
name: Make dist
command: |
mkdir -p dist/linux
if [ $CIRCLE_BRANCH = "master" ]; then
cp target/x86_64-unknown-linux-gnu/release/library-loader-gui dist/linux/
cp target/x86_64-unknown-linux-gnu/release/library-loader-cli dist/linux/
else
cp target/x86_64-unknown-linux-gnu/debug/library-loader-gui dist/linux/
cp target/x86_64-unknown-linux-gnu/debug/library-loader-cli dist/linux/
fi
mkdir -p dist/linux
if [ $CIRCLE_BRANCH = "master" ]; then
cp target/x86_64-unknown-linux-gnu/release/library-loader-gui dist/linux/
cp target/x86_64-unknown-linux-gnu/release/library-loader-cli dist/linux/
else
cp target/x86_64-unknown-linux-gnu/debug/library-loader-gui dist/linux/
cp target/x86_64-unknown-linux-gnu/debug/library-loader-cli dist/linux/
fi
- run:
name: Generate hashes
command: |
cd dist/linux
sha256sum library-loader-gui > library-loader-gui.sha256
sha256sum library-loader-cli > library-loader-cli.sha256
cd dist/linux
sha256sum library-loader-gui > library-loader-gui.sha256
sha256sum library-loader-cli > library-loader-cli.sha256
- run:
name: Verify hashes
command: |
cd dist/linux
sha256sum -c library-loader-gui.sha256
sha256sum -c library-loader-cli.sha256
cd dist/linux
sha256sum -c library-loader-gui.sha256
sha256sum -c library-loader-cli.sha256
- run:
name: Show hashes
command: |
cd dist/linux
cat library-loader-gui.sha256
cat library-loader-cli.sha256
cd dist/linux
cat library-loader-gui.sha256
cat library-loader-cli.sha256
- run:
name: Make dist package
command: |
mkdir dist/library-loader-linux-dist
cp -r dist/linux/* dist/library-loader-linux-dist
cp ll-gui/library-loader-gui.desktop dist/library-loader-linux-dist
cp ll-gui/assets/library-loader-icon.svg dist/library-loader-linux-dist
cp dist-install.sh dist/library-loader-linux-dist/install.sh
cp dist-uninstall.sh dist/library-loader-linux-dist/uninstall.sh
cd dist
tar -cvf library-loader-linux-dist.tar.gz library-loader-linux-dist
- save_cache:
name: Save Linux Build Cache
Expand All @@ -124,6 +136,7 @@ jobs:
- "./dist/linux/library-loader-cli"
- "./dist/linux/library-loader-gui.sha256"
- "./dist/linux/library-loader-cli.sha256"
- "./dist/library-loader-linux-dist.tar.gz"

- store_artifacts:
name: Store GUI Build
Expand All @@ -145,6 +158,10 @@ jobs:
path: "./dist/linux/library-loader-cli.sha256"
destination: "/linux/library-loader-cli.sha256"

- store_artifacts:
name: Store Dist
path: "./dist/library-loader-linux-dist.tar.gz"
destination: "/linux/library-loader-linux-dist.tar.gz"

deploy:
docker:
Expand All @@ -171,21 +188,20 @@ jobs:
name: Restore Linux Build
key: ll-linux-dist-{{ .Environment.CIRCLE_SHA1 }}

- store_artifacts:
name: Store Linux Build
path: "./target/x86_64-unknown-linux-gnu/release/library-loader"
destination: "/linux/library-loader"
# - store_artifacts:
# name: Store Linux Build
# path: "./target/x86_64-unknown-linux-gnu/release/library-loader"
# destination: "/linux/library-loader"

- store_artifacts:
name: Store Linux Build Checksum
path: "./target/x86_64-unknown-linux-gnu/release/library-loader.sha256"
destination: "/linux/library-loader.sha256"
# - store_artifacts:
# name: Store Linux Build Checksum
# path: "./target/x86_64-unknown-linux-gnu/release/library-loader.sha256"
# destination: "/linux/library-loader.sha256"

- run:
name: Deploy
command: node .circleci/deploy/deploy.js


workflows:
version: 2
build:
Expand Down
9 changes: 7 additions & 2 deletions .circleci/deploy/deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,14 @@ const gh = {
}

const files = [
// Linux files
// Linux GUI
new File('./dist/linux/library-loader-gui'),
new File('./dist/linux/library-loader-gui.sha256')
new File('./dist/linux/library-loader-gui.sha256'),
// Linux CLI
new File('./dist/linux/library-loader-cli'),
new File('./dist/linux/library-loader-cli.sha256'),
// Linux Package
new File('./dist/library-loader-linux-dist.tar.gz')
];

let cargoToml = fs.readFileSync('ll-gui/Cargo.toml', 'utf8').toString().split('\n');
Expand Down
1 change: 0 additions & 1 deletion .github/FUNDING.yml

This file was deleted.

30 changes: 0 additions & 30 deletions .github/workflows/macos.yml

This file was deleted.

14 changes: 5 additions & 9 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
/old/
/LibraryLoader.toml
/[abc]LibraryLoader.toml
/test-target
/target
**/*.rs.bk
/download/
/watch/
LibraryLoader.toml
aLibraryLoader.toml
resources.bin
/dist/
*.sha256
*.pfx
*.tar.gz
11 changes: 10 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
# 0.2.2
# 0.3.0
* Refactored
* Supports multiple formats (#15, #17, #62)
* New Config format (incompatible, remove/rename old config)
* Reworked UI
* Fewer CLI options
* Now ignores non ZIP files (#17, #53)
* Uses Rustls instead of OpenSSL

## 0.2.2
* Update download url (fixes 401 errors)

## 0.2.1
Expand Down
Loading

0 comments on commit 82fec1b

Please sign in to comment.