Skip to content

Commit

Permalink
Remove VcXsrv
Browse files Browse the repository at this point in the history
Beta release v0.3.0
Added demo video
  • Loading branch information
htngr committed Dec 18, 2024
1 parent 5b15198 commit 847f6a8
Show file tree
Hide file tree
Showing 14 changed files with 140 additions and 121 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/build-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ jobs:
cp result store.tar.gz
nix build .#machine-wsl.config.build.tarball -L
cp result machine.tar.gz
nix build ./build#vcxsrv-bin -L
cp result vcxsrv-installer.exe
# nix build ./build#vcxsrv-bin -L
# cp result vcxsrv-installer.exe
- uses: actions/upload-artifact@v4
with:
name: windows
Expand Down Expand Up @@ -56,11 +56,11 @@ jobs:
mkdir -p "msix/VFS/Common AppData/codchi/"
mv .\msix\*.tar.gz "msix/VFS/Common AppData/codchi/"
.\msix\vcxsrv-installer.exe /S | Out-Null # wait for installer to finish...
mkdir -p "msix/VFS/ProgramFilesX64"
cp -r "${env:ProgramFiles}\VcXsrv" "msix/VFS/ProgramFilesX64"
rm .\msix\vcxsrv-installer.exe
mv .\msix\VFS\ProgramFilesX64\VcXsrv\vcxsrv.exe .\msix\VFS\ProgramFilesX64\VcXsrv\codchi_vcxsrv.exe
# .\msix\vcxsrv-installer.exe /S | Out-Null # wait for installer to finish...
# mkdir -p "msix/VFS/ProgramFilesX64"
# cp -r "${env:ProgramFiles}\VcXsrv" "msix/VFS/ProgramFilesX64"
# rm .\msix\vcxsrv-installer.exe
# mv .\msix\VFS\ProgramFilesX64\VcXsrv\vcxsrv.exe .\msix\VFS\ProgramFilesX64\VcXsrv\codchi_vcxsrv.exe
# - run: |
# reg add "HKCU\ROOT\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers" /v "[{ProgramFilesX64}]\VcXsrv\codchi_vcxsrv.exe" /t REG_SZ /d "~ HIGHDPIAWARE"
# reg save "HKCU\ROOT" .\msix\User.dat
Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ Codchi is a tool that manages your project's development environment in a reprod
> [!WARNING]
> Codchi is currently in beta and still under active development and testing. Please expect potential bugs and incomplete features. We welcome feedback and contributions to help improve stability and functionality!
## See Codchi in Action
[![YouTube](https://github.com/user-attachments/assets/ac67405a-9963-405e-8849-4d2cd2d90f4d)](https://www.youtube.com/watch?v=CBWrj0v-O0c)


## Getting Started

Read [What is Codchi?](https://codchi.dev/introduction/what-is-codchi) for an introduction to Codchi, or directly go to [Installation](https://codchi.dev/introduction/installation).
Expand All @@ -31,7 +35,7 @@ Report bugs, suggest new features, or ask questions via [GitHub Issues](https://

### Professional Support

For professional support, please contact [aformatik](https://www.aformatik.de/kontakt):
For professional support, please contact [aformatik](https://www.aformatik.de/kontakt) or send an email to <codchi [at] aformatik [dot] de>:

- **Feature Requests & Issues**: We offer dedicated assistance for feature requests, bug fixes, and troubleshooting.
- **Training and Consulting**: Need help building a tailored *code machine* for your organization? We provide specialized training and consulting services to help you leverage Codchi to its full potential in your environment.
Expand Down
14 changes: 7 additions & 7 deletions build/msix/AppxManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,11 @@
<!-- <DeviceCapability Name="webcam" /> -->
<!-- <DeviceCapability Name="bluetooth" /> -->
</Capabilities>
<Extensions>
<desktop2:Extension Category="windows.firewallRules">
<desktop2:FirewallRules Executable="VFS\ProgramFilesX64\VcXsrv\codchi_vcxsrv.exe">
<desktop2:Rule Direction="in" IPProtocol="TCP" LocalPortMax="6000" LocalPortMin="6000" Profile="all"/>
</desktop2:FirewallRules>
</desktop2:Extension>
</Extensions>
<!-- <Extensions> -->
<!-- <desktop2:Extension Category="windows.firewallRules"> -->
<!-- <desktop2:FirewallRules Executable="VFS\ProgramFilesX64\VcXsrv\codchi_vcxsrv.exe"> -->
<!-- <desktop2:Rule Direction="in" IPProtocol="TCP" LocalPortMax="6000" LocalPortMin="6000" Profile="all"/> -->
<!-- </desktop2:FirewallRules> -->
<!-- </desktop2:Extension> -->
<!-- </Extensions> -->
</Package>
98 changes: 24 additions & 74 deletions codchi/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions codchi/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "codchi"
build = "build/main.rs"
version = "0.2.4"
version = "0.3.0"
edition = "2021"
rust-version = "1.80.0"
resolver = "2"
Expand All @@ -11,6 +11,9 @@ resolver = "2"
lto = true
strip = true

[features]
nightly = []

[dependencies]
anyhow = { version = "1.0", features = ["backtrace"] }
log = "0.4"
Expand All @@ -35,7 +38,6 @@ freedesktop_entry_parser = "1.3.0"
indicatif = "0.17.8"
indicatif-log-bridge = "0.2.3"
inquire = "0.7.5"
not-so-human-panic = "1.1.5"
num_enum = "0.7.3"
number_prefix = "0.4.0"
petname = { version = "2.0.2", default-features = false, features = [
Expand All @@ -54,6 +56,7 @@ git-url-parse = "0.4.5"
toml_edit = { version = "0.22.22", features = ["serde"] }
which = "6.0.3"
notify-rust = "4.11.3"
human-panic = "2.0.2"
# clap-help = "1.3.0"
# termimad = "0.30.0"

Expand Down
6 changes: 3 additions & 3 deletions codchi/src/config/codchi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ pub struct CodchiConfig {

#[derive(Clone, Debug, Deserialize, Serialize, PartialEq, Eq)]
pub struct VcXsrvConfig {
#[serde(default = "def_true")]
#[serde(default = "def_false")]
pub enable: bool,
#[serde(default = "def_false")]
pub tray: bool,
Expand All @@ -29,7 +29,7 @@ pub struct VcXsrvConfig {
impl Default for VcXsrvConfig {
fn default() -> Self {
Self {
enable: true,
enable: false,
tray: false,
}
}
Expand Down Expand Up @@ -152,7 +152,7 @@ vcxsrv.tray = true
assert_eq!(
Ok(CodchiConfig {
vcxsrv: VcXsrvConfig {
enable: true,
enable: false,
tray: true
},
..Default::default()
Expand Down
Loading

0 comments on commit 847f6a8

Please sign in to comment.