Skip to content
This repository was archived by the owner on Mar 6, 2024. It is now read-only.

Commit

Permalink
refactor: adapt to ubuntu-desktop-provision
Browse files Browse the repository at this point in the history
  • Loading branch information
jpnurmi committed Jul 21, 2023
1 parent 925a505 commit 6f4d70a
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 7 deletions.
1 change: 0 additions & 1 deletion .github/workflows/installer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ jobs:
submodules: recursive

- name: Install dependencies
working-directory: packages/subiquity_client/subiquity
run: |
sudo apt update
sudo apt install -y clang cmake curl libgtk-3-dev ninja-build pkg-config unzip xvfb
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/wsl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ jobs:
submodules: recursive

- name: Install dependencies
working-directory: packages/subiquity_client/subiquity
run: |
sudo apt update
sudo apt install -y clang cmake curl libgtk-3-dev ninja-build pkg-config unzip xvfb
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
SUBIQUITY_DIR = packages/subiquity_client/subiquity
SUBIQUITY_DIR = vendor/ubuntu-desktop-provision/packages/subiquity_client/subiquity

$(SUBIQUITY_DIR):
[ -d $(SUBIQUITY_DIR) ] || git submodule update --init --recursive
Expand Down
1 change: 1 addition & 0 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ analyzer:
- "**/*.g.dart"
- "**/*.mocks.dart"
- "**/l10n/*.dart"
- "vendor/"

linter:
rules:
Expand Down
2 changes: 1 addition & 1 deletion scripts/subiquity_integration
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class Tests(unittest.TestCase):
with open('snap/snapcraft.yaml', 'r') as udi_snapcraft:
udi_data = yaml.safe_load(udi_snapcraft)

with open('packages/subiquity_client/subiquity/snapcraft.yaml', 'r') \
with open('vendor/ubuntu-desktop-provision/packages/subiquity_client/subiquity/snapcraft.yaml', 'r') \
as subiquity_snapcraft:
subiquity_data = yaml.safe_load(subiquity_snapcraft)

Expand Down
2 changes: 1 addition & 1 deletion scripts/update-subiquity-deps
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ yaml.indent(mapping=2, sequence=2, offset=2)
with open('snap/snapcraft.yaml', 'r') as fp:
udi_data = yaml.load(fp)

with open('packages/subiquity_client/subiquity/snapcraft.yaml', 'r') as fp:
with open('vendor/ubuntu-desktop-provision/packages/subiquity_client/subiquity/snapcraft.yaml', 'r') as fp:
subiquity_data = yaml.load(fp)

for part in ('probert', 'curtin'):
Expand Down
4 changes: 2 additions & 2 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -158,11 +158,11 @@ parts:
mkdir -p $CRAFT_PART_INSTALL/bin/lib
cp snap/local/launcher $CRAFT_PART_INSTALL/bin/
cp snap/local/subiquity-server $CRAFT_PART_INSTALL/bin/
cp -r packages/subiquity_client/subiquity $CRAFT_PART_INSTALL/bin/
cp -r vendor/ubuntu-desktop-provision/packages/subiquity_client/subiquity $CRAFT_PART_INSTALL/bin/
mkdir -p $CRAFT_PART_INSTALL/etc/subiquity
cp -r snap/local/postinst.d $CRAFT_PART_INSTALL/etc/subiquity
# https://github.com/canonical/ubuntu-desktop-installer/issues/1146
(cd packages/ubuntu_wizard && flutter pub get)
(cd vendor/ubuntu-desktop-provision/packages/ubuntu_wizard && flutter pub get)
cd packages/ubuntu_desktop_installer
flutter pub get
flutter build linux --release -v
Expand Down

0 comments on commit 6f4d70a

Please sign in to comment.