Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preparing v0.6.0 release #74

Merged
merged 41 commits into from
Nov 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
74fd590
Bump version to 0.6.0 in package.json, package-lock.json, Cargo.toml,…
waveyboym Nov 2, 2024
d61ae9c
Refactor module imports and formatting across various files for consi…
waveyboym Nov 2, 2024
34b1b88
Refactor song and component structures to include UUIDs; remove unuse…
waveyboym Nov 3, 2024
d296ccc
Refactor UUID generation and cover image handling in metadata functio…
waveyboym Nov 3, 2024
8781514
Add firstRun state management and update refresh_paths command for ne…
waveyboym Nov 3, 2024
e16cf61
Update song_exists_in_tree function to use path instead of UUID for s…
waveyboym Nov 3, 2024
1de2198
Add Music Folders setting and update layout styles; refactor GeneralS…
waveyboym Nov 7, 2024
42f5491
Add shadow property to tauri configuration and log response object in…
waveyboym Nov 7, 2024
3fe1c89
Add editing song modal state management and update related components
waveyboym Nov 9, 2024
ec60739
Add wallpaper management features and update related components
waveyboym Nov 9, 2024
84765ab
Refactor audio manager to BackendStateManager and update related comp…
waveyboym Nov 10, 2024
14b1e63
Make add_new_wallpaper_to_db function asynchronous for improved perfo…
waveyboym Nov 10, 2024
12970aa
Enhance playlist management: add UUID to playlist interface, update d…
waveyboym Nov 11, 2024
27572af
Refactor App component: remove unused window resize handlers, update …
waveyboym Nov 14, 2024
756d9d2
Add window module for media key handling, update Tauri configuration …
waveyboym Nov 14, 2024
4d33d87
Refactor command line argument handling: update collect_args function…
waveyboym Nov 15, 2024
2236260
Merge pull request #66 from muzik-apps/song-metadata-retrieval-rewrite
waveyboym Nov 15, 2024
8afb3f4
Add autostart capability, enhance UI components, and update package d…
waveyboym Nov 16, 2024
5638e01
Add Linux and Windows icons, enhance styles with improved box shadows…
waveyboym Nov 17, 2024
641c27e
Enhance AddSongToPlaylistModal and AddSongsToPlaylistModal: implement…
waveyboym Nov 19, 2024
f373d0e
Create LICENSE
waveyboym Nov 20, 2024
ac57067
Add export and import modules, enhance song data structure, and updat…
waveyboym Nov 20, 2024
efd6ebf
Add loading skeletons to SearchSongs and AllTracks components, and ad…
waveyboym Nov 20, 2024
e36e4dd
Add drag-and-drop functionality: update state management, styles, and…
waveyboym Nov 21, 2024
46f59d5
Refactor drag-and-drop functionality: update styles for drag-drop-bor…
waveyboym Nov 21, 2024
3c3f8e6
Refactor directory management: change Dir type to Set<string>, update…
waveyboym Nov 21, 2024
f120b4f
Add delete functionality to WallpapersSelectionModal: implement wallp…
waveyboym Nov 21, 2024
223e178
Merge pull request #69 from muzik-apps/drag-drop-folders-feat
waveyboym Nov 21, 2024
422d872
Add tabled dependency, update JSON export formatting, and improve son…
waveyboym Nov 21, 2024
2f96b33
Refactor cover image handling: replace getRandomCover with getNullRan…
waveyboym Nov 22, 2024
69d8448
Update navbar header styles: increase margin-right from 1.5px to 2.5p…
waveyboym Nov 22, 2024
04c0520
Update navbar header styles: decrease margin-right from 2.5px to 2.0p…
waveyboym Nov 22, 2024
3226f1a
Merge branch 'main-app-dev' into export-library-and-song-metadata
waveyboym Nov 22, 2024
7a5a434
Merge pull request #71 from muzik-apps/export-library-and-song-metadata
waveyboym Nov 22, 2024
e7ebb24
Add EditPlaylistModal functionality and state management for editing …
waveyboym Nov 22, 2024
5c85261
Add setup module and refactor window imports for audio manager initia…
waveyboym Nov 23, 2024
d897a9b
Merge branch 'main-app-dev' into skeleton-loading
waveyboym Nov 23, 2024
26f5748
Refactor styles for track, album, genre, artist, and playlist layouts…
waveyboym Nov 23, 2024
9692a99
Merge pull request #73 from muzik-apps/skeleton-loading
waveyboym Nov 23, 2024
e1dec9e
dotenv config and macos build config setup
waveyboym Nov 23, 2024
76d7ef4
Add GitHub Actions workflow for build and release; update .gitignore …
waveyboym Nov 23, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
87 changes: 87 additions & 0 deletions .github/workflows/build-and-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
name: 'build-and-release'

on:
workflow_dispatch:
push:
branches:
- releases

defaults:
run:
working-directory: muzik-offline

jobs:
publish-tauri:
permissions:
contents: write
strategy:
fail-fast: false
matrix:
include:
- platform: 'macos-latest' # for Arm based macs (M1 and above).
args: '--target aarch64-apple-darwin'
- platform: 'macos-latest' # for Intel based macs.
args: '--target x86_64-apple-darwin'
- platform: 'ubuntu-22.04'
args: ''
- platform: 'windows-latest'
args: ''

runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
- name: install dependencies (ubuntu only)
if: matrix.platform == 'ubuntu-22.04'
# This must match the platform value defined above.
run: |
sudo apt-get update
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf libasound2-dev
- name: setup node
uses: actions/setup-node@v4
with:
node-version: lts/*
cache: 'npm' # Set this to npm, yarn or pnpm.

- name: install Rust stable
uses: dtolnay/rust-toolchain@stable # Set this to dtolnay/rust-toolchain@nightly
with:
# Those targets are only used on macos runners so it's in an `if` to slightly speed up windows and linux builds.
targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}

- name: Rust cache
uses: swatinem/rust-cache@v2
with:
workspaces: './src-tauri -> target'

- name: install frontend dependencies
# If you don't have `beforeBuildCommand` configured you may want to build your frontend here too.
run: npm install # change this to npm or pnpm depending on which one you use.

- name: Install OpenSSL
run: |
if [[ "${{ matrix.platform }}" == "macos-latest" ]]; then
brew install openssl
elif [[ "${{ matrix.platform }}" == "ubuntu-22.04" ]]; then
sudo apt-get update && sudo apt-get install -y openssl
elif [[ "${{ matrix.platform }}" == "windows-latest" ]]; then
choco install openssl -y
fi
- name: Verify OpenSSL Installation
run: openssl version

- name: Decrypt the environment variables in src-tauri/.env.enc
run: |
openssl enc -d -aes-256-cbc -pbkdf2 -in src-tauri/.env.enc -out src-tauri/.env -pass pass:${{ secrets.ENCRYPTION_PASSWORD }}
- uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tagName: app-v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version.
releaseName: 'App v__VERSION__'
releaseBody: 'See the assets to download this version and install.'
releaseDraft: true
prerelease: false
args: ${{ matrix.args }}
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2024 muzik-offline

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
21 changes: 6 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,28 +66,19 @@ DISCORD_CLIENT_ID=<Your client id goes here>
```
npm run tauri dev
```
11. You can encrypt your env file with:
```
openssl enc -aes-256-cbc -salt -pbkdf2 -in src-tauri/.env -out src-tauri/.env.enc -pass pass:{pass-key}
```

## Building
1. Clone the <a href="https://github.com/muzik-apps/muzik-offline/tree/releases">releases</a> branch. It is the most stable and ready to go branch
2. Before you create a build, you will have to embed any env variables into the rust code otherwise the application will panic if you try to run it. The env variables are only meant to be used in the development cycle.
3. To embed the env variables, copy your ```DISCORD_CLIENT_ID``` from the ```.env``` file.
4. Go to <a href="https://github.com/muzik-apps/muzik-offline/blob/main-app-dev/muzik-offline/src-tauri/src/socials/discord_rpc.rs">discord_rpc.rs</a> and comment out these snippets of code:
```
3 -> use dotenv::dotenv;
4 -> use std::env;

15 -> //get client id from env variables
16 -> dotenv().ok();
17 -> let client_id = env::var("DISCORD_CLIENT_ID").expect("DISCORD_CLIENT_ID env variable not set");
```
5. In this snippet of code ```let client: DiscordIpcClient = DiscordIpcClient::new(&client_id)?;```, replace ```&client_id``` with ```"<Your client id goes here>"```
6. You can also remove the <a href="https://github.com/muzik-apps/muzik-offline/blob/main-app-dev/muzik-offline/src-tauri/Cargo.toml#L30">dotnev crate</a> by just removing that line of code.
7. If you want to go back to dev, you will have to undo all the steps above.
8. If you want to create a production build, run
4. If you want to create a production build, run
```
npm run tauri build
```
9. If you want to create a <a href="https://tauri.app/v1/guides/debugging/application#using-the-inspector-in-production">debug production build</a>(one where you have access to devtools), run
5. If you want to create a <a href="https://tauri.app/v1/guides/debugging/application#using-the-inspector-in-production">debug production build</a>(one where you have access to devtools), run
```
npm run tauri build -- --debug
```
Expand Down
Loading